public interface AttributeHolder
WebSession
attributes should not be
changed once the response is committed).Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the named object, or null if no attribute has been stored with the given name.
|
java.util.List |
getAttributeNames()
Returns a list of all known attributes in ascending alphabetical order.
|
void |
setAttribute(java.lang.String name,
java.lang.Object attribute)
Updates the attribute, replacing (or removing) its value.
|
java.util.List getAttributeNames()
java.lang.Object getAttribute(java.lang.String name)
void setAttribute(java.lang.String name, java.lang.Object attribute)
WebSession
attribute in a clustered application).name
- the name of the attribute to updateattribute
- the new value for the attribute, or null to delete the attribute entirely.