Interface ImmutableSession
-
- All Known Subinterfaces:
Session<L>
- All Known Implementing Classes:
OOBSession
public interface ImmutableSessionRepresents an immutable view of a web session.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableSessionAttributesgetAttributes()Returns this session's attributes.StringgetId()Specifies this session's unique identifier.ImmutableSessionMetaDatagetMetaData()Returns this session's meta data.booleanisValid()Indicates whether or not this session is valid.
-
-
-
Method Detail
-
getId
String getId()
Specifies this session's unique identifier.- Returns:
- a unique identifier for this session.
-
isValid
boolean isValid()
Indicates whether or not this session is valid.- Returns:
- true, if this session is valid, false otherwise
-
getMetaData
ImmutableSessionMetaData getMetaData()
Returns this session's meta data.- Returns:
- this session's meta data
- Throws:
IllegalStateException- if this session is invalid
-
getAttributes
ImmutableSessionAttributes getAttributes()
Returns this session's attributes.- Returns:
- this session's attributes
- Throws:
IllegalStateException- if this session is invalid
-
-