|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MuleSession
MuleSession
is the context in which a request is executed. The
session manages the marshalling of events to and from components This object is
not usually referenced by client code directly. If needed Components should manage
events via the MuleEventContext
which is obtainable via the
UMOManager
or by implementing
org.mule.api.lifecycle.Callable
.
Method Summary | ||
---|---|---|
FlowConstruct |
getFlowConstruct()
Returns the Service associated with the session in its current execution |
|
String |
getId()
Returns the unique id for this session |
|
|
getProperty(Object key)
Will retrieve a session level property. |
|
Iterator |
getPropertyNames()
Deprecated. Use getPropertyNamesAsSet() instead |
|
Set<String> |
getPropertyNamesAsSet()
|
|
SecurityContext |
getSecurityContext()
The security context for this session. |
|
boolean |
isValid()
Determines if this session is valid. |
|
void |
merge(MuleSession updatedSession)
Merge current session with an updated version Result session will contain all the properties from updatedSession plus those properties in the current session that couldn't be serialized In case updatedSession is null, then no change will be applied. |
|
Object |
removeProperty(Object key)
Will retrieve a session level property and remove it from the session |
|
void |
setFlowConstruct(FlowConstruct flowConstruct)
Sets the Service associated with the session in its current execution |
|
void |
setProperty(String key,
Object value)
Will set a session level property. |
|
void |
setSecurityContext(SecurityContext context)
The security context for this session. |
|
void |
setValid(boolean value)
Determines if this session is valid. |
Method Detail |
---|
FlowConstruct getFlowConstruct()
FlowConstruct
void setFlowConstruct(FlowConstruct flowConstruct)
FlowConstruct
boolean isValid()
void setValid(boolean value)
value
- true if the service is functioning properly, false otherwiseString getId()
void setSecurityContext(SecurityContext context)
context
- the context for this session or null if the request is not
secure.SecurityContext getSecurityContext()
void setProperty(String key, Object value)
key
- the key for the object data being stored on the sessionvalue
- the value of the session data<T> T getProperty(Object key)
key
- the key for the object data being stored on the session
Object removeProperty(Object key)
key
- the key for the object data being stored on the session
Iterator getPropertyNames()
Set<String> getPropertyNamesAsSet()
void merge(MuleSession updatedSession)
updatedSession
- mule session with updated properties
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |