public class DefaultSession extends Object implements Session, Serializable
| Constructor and Description |
|---|
DefaultSession() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Checks whether given object equals this session by comparing session id's.
|
<T> Map<String,T> |
getAllAttributes() |
<T> T |
getAttribute(String name)
Returns for the given session attribute name the value
|
JaloSession |
getJaloSession() |
String |
getSessionId() |
int |
hashCode()
Returns the hashcode of this Session determined by it's session id.
|
void |
init(JaloSession jaloSession,
ModelService modelService) |
void |
removeAttribute(String name)
Removes the given attribute from the current session.
|
void |
setAttribute(String name,
Object value)
Sets the given value Object to the Session as attribute with the given name
|
void |
setJaloSession(JaloSession jaloSession)
Deprecated.
|
public void setAttribute(String name, Object value)
SessionsetAttribute in interface Sessionname - the name of the attributevalue - the value to be setpublic <T> T getAttribute(String name)
SessiongetAttribute in interface Sessionname - the attribute namenull if no attribute with the given name is stored in the sessionpublic <T> Map<String,T> getAllAttributes()
getAllAttributes in interface Sessionpublic String getSessionId()
getSessionId in interface Session@Deprecated public void setJaloSession(JaloSession jaloSession)
public void init(JaloSession jaloSession, ModelService modelService)
public JaloSession getJaloSession()
JaloSessionpublic final boolean equals(Object object)
public final int hashCode()
public void removeAttribute(String name)
SessionremoveAttribute in interface Sessionname - the attribute nameCopyright © 2017 SAP SE. All Rights Reserved.