public final class SessionAttributeMetadata extends Object implements Serializable
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 FormModifier and Type | Class and Description |
---|---|
static class |
SessionAttributeMetadata.Operation
Operation to be performed on this attribute
|
Constructor and Description |
---|
SessionAttributeMetadata(String attributeName,
SessionAttributeMetadata.Operation opcode,
byte[] data)
Construct an AtributeMetadata
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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() |
public SessionAttributeMetadata(String attributeName, SessionAttributeMetadata.Operation opcode, byte[] data)
attributeName
- the attribute nameopcode
- The operation to be performed on the AttrbuteMetadatadata
- The attribute datapublic String getAttributeName()
public SessionAttributeMetadata.Operation getOperation()
public byte[] getState()
Copyright © 2019. All rights reserved.