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