java.lang.Object
org.bzdev.ejws.EjwsStateTable
- All Implemented Interfaces:
HttpSessionOps
Ejws immplenation of the HttpSessionOps interface
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.EjwsStateTable(int size) Constructor specifying an internal table size. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine if this object recognizes a session ID.Get the session implementation associated with a session ID.voidAdd a session ID to this object.voidRemove a session ID from this object.voidRename a session implementation by changing the session ID referencing it.
-
Constructor Details
-
EjwsStateTable
public EjwsStateTable()Constructor. -
EjwsStateTable
public EjwsStateTable(int size) Constructor specifying an internal table size.- Parameters:
size- the table size
-
-
Method Details
-
remove
Description copied from interface:HttpSessionOpsRemove a session ID from this object.- Specified by:
removein interfaceHttpSessionOps- Parameters:
sid- the session ID
-
put
Description copied from interface:HttpSessionOpsAdd a session ID to this object. This method is responsible for creating a new session implementation, but must not change an existing one. If the session ID already exists, nothing is added or removed.- Specified by:
putin interfaceHttpSessionOps- Parameters:
sid- the session IDstate- an object representing the state of a session
-
rename
Description copied from interface:HttpSessionOpsRename a session implementation by changing the session ID referencing it.- Specified by:
renamein interfaceHttpSessionOps- Parameters:
oldID- the existing sessionIDnewID- the new sessionID- Throws:
IllegalStateException- oldID was not already added or newID was already added
-
contains
Description copied from interface:HttpSessionOpsDetermine if this object recognizes a session ID.- Specified by:
containsin interfaceHttpSessionOps- Parameters:
sid- the session ID- Returns:
- true if the session exists; false otherwise
-
get
Description copied from interface:HttpSessionOpsGet the session implementation associated with a session ID.- Specified by:
getin interfaceHttpSessionOps- Parameters:
sid- the session ID- Returns:
- the session implementation
-