@Deprecated public interface MuleSession extends Serializable
MuleSession is the context in which a request is processed by Mule. The scope of the MuleSession context includes
all Mule Flows and Services that the request is routed through on the same or different Mule instances. A MuleSession instance
has a unique id, session scope properties and an optional security context.
In order for the session to be propagated from one Flow or Service to the next a transports that support message properties
needs to be used. A SessionHandler is used to store the session in an outbound message property and then retrieve it
from an inbound property using a specific strategy.
SessionHandler| Modifier and Type | Method and Description |
|---|---|
void |
clearProperties()
Deprecated.
|
Object |
getProperty(String key)
Deprecated.
Will retrieve a session scope property.
|
org.mule.runtime.api.metadata.DataType |
getPropertyDataType(String name)
Deprecated.
Retrieves a session scope property data type
|
Set<String> |
getPropertyNamesAsSet()
Deprecated.
|
SecurityContext |
getSecurityContext()
Deprecated.
The security context for this session.
|
void |
merge(MuleSession updatedSession)
Deprecated.
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(String key)
Deprecated.
Will retrieve a session scope property and remove it from the session
|
void |
setProperty(String key,
Object value)
Deprecated.
|
void |
setProperty(String key,
Object value,
org.mule.runtime.api.metadata.DataType dataType)
Deprecated.
|
void |
setProperty(String key,
Serializable value)
Deprecated.
Will set a session scope property.
|
void |
setProperty(String key,
Serializable value,
org.mule.runtime.api.metadata.DataType dataType)
Deprecated.
Will set a session scope property.
|
void |
setSecurityContext(SecurityContext context)
Deprecated.
The security context for this session.
|
void setSecurityContext(SecurityContext context)
context - the context for this session or null if the request is not secure.SecurityContext getSecurityContext()
void setProperty(String key, Serializable value)
key - the key for the object data being stored on the sessionvalue - the value of the session datavoid setProperty(String key, Serializable value, org.mule.runtime.api.metadata.DataType dataType)
key - the key for the object data being stored on the sessionvalue - the value of the session datadataType - the data type for the property value@Deprecated void setProperty(String key, Object value)
@Deprecated void setProperty(String key, Object value, org.mule.runtime.api.metadata.DataType dataType)
Object getProperty(String key)
key - the key for the object data being stored on the sessionObject removeProperty(String key)
key - the key for the object data being stored on the sessionSet<String> getPropertyNamesAsSet()
void merge(MuleSession updatedSession)
updatedSession - mule session with updated propertiesvoid clearProperties()
org.mule.runtime.api.metadata.DataType getPropertyDataType(String name)
name - the name for the session propertyCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.