|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.web.ha.session.management.SessionAttributeMetadata
public final class SessionAttributeMetadata
AttributeMetadata contains the metadata of an attribute that is part of an Http Session. When a container decides to save a session it passes an instance of CompositeMetaData which contains a collection of AttributeMetadata.
The attribute in question could have been deleted, or modified or could be a new attribute inside the HttpSession. getOperation() tells exactly what operation needs to be performed for this attribute
The attribute state/data itself can be obtained with getState(). Since an attribute is part of a session, the attributes must be deleted when the session is removed. The CompositeMetadata contains the last access time and inactive timeout for the session.
CompositeMetadata,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
SessionAttributeMetadata.Operation
Operation to be performed on this attribute |
| Constructor Summary | |
|---|---|
SessionAttributeMetadata(java.lang.String attributeName,
SessionAttributeMetadata.Operation opcode,
byte[] data)
Construct an AtributeMetadata |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAttributeName()
Returns name of the attribute |
SessionAttributeMetadata.Operation |
getOperation()
Get the operation to be performed on the attribute. |
byte[] |
getState()
Get the attribute data |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionAttributeMetadata(java.lang.String attributeName,
SessionAttributeMetadata.Operation opcode,
byte[] data)
attributeName - the attribute nameopcode - The operation to be performed on the AttrbuteMetadatadata - The attribute data| Method Detail |
|---|
public java.lang.String getAttributeName()
public SessionAttributeMetadata.Operation getOperation()
public byte[] getState()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||