|
||||||||||
| 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 |
|
String |
getId()
Returns the unique id for this session |
|
|
getProperty(Object key)
Will retrieve a session level property. |
|
Iterator<String> |
getPropertyNames()
Deprecated. Use getPropertyNamesAsSet() instead |
|
Set<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. |
|
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. |
|
| 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 String getId()
MuleSession
getId in interface MuleSessionpublic boolean isValid()
MuleSession
isValid in interface MuleSessionpublic void setValid(boolean value)
MuleSession
setValid in interface MuleSessionvalue - true if the service is functioning properly, false otherwisepublic FlowConstruct getFlowConstruct()
MuleSession
getFlowConstruct in interface MuleSessionFlowConstructpublic void setFlowConstruct(FlowConstruct flowConstruct)
MuleSession
setFlowConstruct in interface MuleSessionFlowConstructpublic void setSecurityContext(SecurityContext context)
setSecurityContext in interface MuleSessioncontext - the context for this session or null if the request is not
secure.public SecurityContext getSecurityContext()
getSecurityContext in interface MuleSession
public void setProperty(String key,
Object value)
setProperty in interface MuleSessionkey - the key for the object data being stored on the sessionvalue - the value of the session datapublic <T> T getProperty(Object key)
getProperty in interface MuleSessionkey - the key for the object data being stored on the session
public Object removeProperty(Object key)
removeProperty in interface MuleSessionkey - the key for the object data being stored on the session
@Deprecated public Iterator<String> getPropertyNames()
getPropertyNames in interface MuleSessionpublic Set<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 | |||||||||