|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeHolder
Interface for objects that can hold attributes. Attributes are objects that are stored and
retrieved using unique string names. There may be constraints on when attributes can be accessed
(for example, WebSession
attributes should not be
changed once the response is committed).
Method Summary | |
---|---|
Object |
getAttribute(String name)
Returns the named object, or null if no attribute has been stored with the given name. |
List |
getAttributeNames()
Returns a list of all known attributes in ascending alphabetical order. |
void |
setAttribute(String name,
Object attribute)
Updates the attribute, replacing (or removing) its value. |
Method Detail |
---|
List getAttributeNames()
Object getAttribute(String name)
void setAttribute(String name, 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |