|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
DefaultMuleSession()
|
|
DefaultMuleSession(FlowConstruct flowConstruct,
MuleContext muleContext)
Deprecated. |
|
DefaultMuleSession(MuleContext muleContext)
Deprecated. |
|
DefaultMuleSession(MuleSession session)
|
|
DefaultMuleSession(MuleSession source,
FlowConstruct flowConstruct)
Deprecated. |
|
DefaultMuleSession(MuleSession source,
MuleContext muleContext)
Deprecated. |
|
| Method Summary | ||
|---|---|---|
void |
clearProperties()
|
|
FlowConstruct |
getFlowConstruct()
WANRING: This method will always return null unless you created the DefaultMuleSession with a flowConstruct or set one using the setter. |
|
String |
getId()
Returns the unique id for this session |
|
Map<String,Object> |
getProperties()
|
|
|
getProperty(Object key)
Will retrieve a session level property. |
|
|
getProperty(String key)
Will retrieve a session scope property. |
|
Iterator<String> |
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 |
|
Object |
removeProperty(String key)
Will retrieve a session scope property and remove it from the session |
|
void |
setFlowConstruct(FlowConstruct flowConstruct)
WANRING: This method should not be used, and is only here for bacwards compatability |
|
void |
setProperty(String key,
Object value)
Will set a session level property. |
|
void |
setProperty(String key,
Serializable value)
Will set a session scope 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()
public DefaultMuleSession(MuleSession session)
@Deprecated public DefaultMuleSession(MuleContext muleContext)
@Deprecated
public DefaultMuleSession(FlowConstruct flowConstruct,
MuleContext muleContext)
@Deprecated
public DefaultMuleSession(MuleSession source,
MuleContext muleContext)
@Deprecated
public DefaultMuleSession(MuleSession source,
FlowConstruct flowConstruct)
| 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 session is valid, false otherwisepublic 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 MuleSessionpublic void merge(MuleSession updatedSession)
MuleSession
merge in interface MuleSessionupdatedSession - mule session with updated propertiespublic Map<String,Object> getProperties()
public void setProperty(String key,
Serializable value)
MuleSession
setProperty in interface MuleSessionkey - the key for the object data being stored on the sessionvalue - the value of the session datapublic <T> T getProperty(String key)
MuleSession
getProperty in interface MuleSessionkey - the key for the object data being stored on the session
public Object removeProperty(String key)
MuleSession
removeProperty in interface MuleSessionkey - the key for the object data being stored on the session
public void clearProperties()
clearProperties in interface MuleSessionpublic FlowConstruct getFlowConstruct()
MuleSession
getFlowConstruct in interface MuleSessionpublic void setFlowConstruct(FlowConstruct flowConstruct)
MuleSession
setFlowConstruct in interface MuleSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||