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 TypeMethodDescriptionboolean
Determine if this object recognizes a session ID.Get the session implementation associated with a session ID.void
Add a session ID to this object.void
Remove a session ID from this object.void
Rename 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:HttpSessionOps
Remove a session ID from this object.- Specified by:
remove
in interfaceHttpSessionOps
- Parameters:
sid
- the session ID
-
put
Description copied from interface:HttpSessionOps
Add 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:
put
in interfaceHttpSessionOps
- Parameters:
sid
- the session IDstate
- an object representing the state of a session
-
rename
Description copied from interface:HttpSessionOps
Rename a session implementation by changing the session ID referencing it.- Specified by:
rename
in 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:HttpSessionOps
Determine if this object recognizes a session ID.- Specified by:
contains
in interfaceHttpSessionOps
- Parameters:
sid
- the session ID- Returns:
- true if the session exists; false otherwise
-
get
Description copied from interface:HttpSessionOps
Get the session implementation associated with a session ID.- Specified by:
get
in interfaceHttpSessionOps
- Parameters:
sid
- the session ID- Returns:
- the session implementation
-