public interface Session
Modifier and Type | Method and Description |
---|---|
<T> T |
getAttribute(String attributeName)
Gets the Object associated with the specified name or null if no Object is
associated to that name.
|
Set<String> |
getAttributeNames()
Gets the attribute names that have a value associated with it.
|
String |
getId()
Gets a unique string that identifies the
Session . |
void |
removeAttribute(String attributeName)
Removes the attribute with the provided attribute name.
|
void |
setAttribute(String attributeName,
Object attributeValue)
Sets the attribute value for the provided attribute name.
|
String getId()
Session
.Session
<T> T getAttribute(String attributeName)
T
- The return type of the attributeattributeName
- the name of the attribute to getSet<String> getAttributeNames()
getAttribute(String)
to
obtain the attribute value.getAttribute(String)
void setAttribute(String attributeName, Object attributeValue)
removeAttribute(String)
.attributeName
- the attribute name to setattributeValue
- the value of the attribute to set. If null, the attribute
will be removed.void removeAttribute(String attributeName)
attributeName
- the name of the attribute to remove