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