@Deprecated public final class DefaultMuleSession extends Object implements MuleSession
DefaultMuleSession manages the interaction and distribution of events for Mule Services.| Constructor and Description |
|---|
DefaultMuleSession()
Deprecated.
|
DefaultMuleSession(MuleSession session)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearProperties()
Deprecated.
|
Map<String,org.mule.runtime.api.metadata.TypedValue> |
getExtendedProperties()
Deprecated.
|
Map<String,Object> |
getProperties()
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.
|
void |
removeNonSerializableProperties()
Deprecated.
|
Object |
removeProperty(String key)
Deprecated.
Will retrieve a session scope property and remove it from the session
|
void |
setProperty(String key,
Object value)
Deprecated.
Will set a session level property.
|
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.
|
public DefaultMuleSession()
public DefaultMuleSession(MuleSession session)
public 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 MuleSessionpublic 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 void setProperty(String key, Object value, org.mule.runtime.api.metadata.DataType dataType)
setProperty in interface MuleSessionpublic Set<String> getPropertyNamesAsSet()
getPropertyNamesAsSet in interface MuleSessionpublic void merge(MuleSession updatedSession)
MuleSessionmerge in interface MuleSessionupdatedSession - mule session with updated propertiespublic Map<String,org.mule.runtime.api.metadata.TypedValue> getExtendedProperties()
public void removeNonSerializableProperties()
public void setProperty(String key, Serializable value)
MuleSessionsetProperty in interface MuleSessionkey - the key for the object data being stored on the sessionvalue - the value of the session datapublic void setProperty(String key, Serializable value, org.mule.runtime.api.metadata.DataType dataType)
MuleSessionsetProperty in interface MuleSessionkey - the key for the object data being stored on the sessionvalue - the value of the session datadataType - the data type for the property valuepublic Object getProperty(String key)
MuleSessiongetProperty in interface MuleSessionkey - the key for the object data being stored on the sessionpublic Object removeProperty(String key)
MuleSessionremoveProperty in interface MuleSessionkey - the key for the object data being stored on the sessionpublic void clearProperties()
clearProperties in interface MuleSessionpublic org.mule.runtime.api.metadata.DataType getPropertyDataType(String name)
MuleSessiongetPropertyDataType in interface MuleSessionname - the name for the session propertyCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.