|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.session.DefaultMuleSession
public final class DefaultMuleSession
DefaultMuleSession
manages the interaction and distribution of events for
Mule Services.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.mule.util.store.DeserializationPostInitialisable |
---|
DeserializationPostInitialisable.Implementation |
Constructor Summary | |
---|---|
DefaultMuleSession(FlowConstruct flowConstruct,
MuleContext muleContext)
|
|
DefaultMuleSession(MuleContext muleContext)
|
|
DefaultMuleSession(MuleMessage message,
SessionHandler requestSessionHandler,
FlowConstruct flowConstruct,
MuleContext muleContext)
Deprecated. Use DefaultMuleSession(Service service, MuleContext muleContext) instead |
|
DefaultMuleSession(MuleMessage message,
SessionHandler requestSessionHandler,
MuleContext muleContext)
Deprecated. Use DefaultMuleSession(MuleContext muleContext) instead |
|
DefaultMuleSession(MuleSession session,
MuleContext muleContext)
|
Method Summary | ||
---|---|---|
FlowConstruct |
getFlowConstruct()
Returns the Service associated with the session in its current execution |
|
java.lang.String |
getId()
Returns the unique id for this session |
|
|
getProperty(java.lang.Object key)
Will retrieve a session level property. |
|
java.util.Iterator<java.lang.String> |
getPropertyNames()
Deprecated. Use getPropertyNamesAsSet() instead |
|
java.util.Set<java.lang.String> |
getPropertyNamesAsSet()
|
|
SecurityContext |
getSecurityContext()
The security context for this session. |
|
void |
initAfterDeserialisation(MuleContext muleContext)
Invoked after deserialization. |
|
boolean |
isValid()
Determines if this session is valid. |
|
java.lang.Object |
removeProperty(java.lang.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(java.lang.String key,
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMuleSession(MuleContext muleContext)
public DefaultMuleSession(FlowConstruct flowConstruct, MuleContext muleContext)
@Deprecated public DefaultMuleSession(MuleMessage message, SessionHandler requestSessionHandler, FlowConstruct flowConstruct, MuleContext muleContext) throws MuleException
MuleException
@Deprecated public DefaultMuleSession(MuleMessage message, SessionHandler requestSessionHandler, MuleContext muleContext) throws MuleException
MuleException
public DefaultMuleSession(MuleSession session, MuleContext muleContext)
Method Detail |
---|
public java.lang.String getId()
MuleSession
getId
in interface MuleSession
public boolean isValid()
MuleSession
isValid
in interface MuleSession
public void setValid(boolean value)
MuleSession
setValid
in interface MuleSession
value
- true if the service is functioning properly, false otherwisepublic FlowConstruct getFlowConstruct()
MuleSession
getFlowConstruct
in interface MuleSession
FlowConstruct
public void setFlowConstruct(FlowConstruct flowConstruct)
MuleSession
setFlowConstruct
in interface MuleSession
FlowConstruct
public void setSecurityContext(SecurityContext context)
setSecurityContext
in interface MuleSession
context
- the context for this session or null if the request is not
secure.public SecurityContext getSecurityContext()
getSecurityContext
in interface MuleSession
public void setProperty(java.lang.String key, java.lang.Object value)
setProperty
in interface MuleSession
key
- the key for the object data being stored on the sessionvalue
- the value of the session datapublic <T> T getProperty(java.lang.Object key)
getProperty
in interface MuleSession
key
- the key for the object data being stored on the session
public java.lang.Object removeProperty(java.lang.Object key)
removeProperty
in interface MuleSession
key
- the key for the object data being stored on the session
@Deprecated public java.util.Iterator<java.lang.String> getPropertyNames()
getPropertyNames
in interface MuleSession
public java.util.Set<java.lang.String> getPropertyNamesAsSet()
getPropertyNamesAsSet
in interface MuleSession
public void initAfterDeserialisation(MuleContext muleContext) throws MuleException
DeserializationPostInitialisable
is used. This will get invoked
after the object has been deserialized passing in the current mulecontext when using either
SerializationWireFormat
,
SerializedMuleMessageWireFormat
, or the
ByteArrayToSerializable
transformer.
muleContext
- the current muleContext instance
MuleException
- if there is an error initializing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |