Class EjwsStateTable

java.lang.Object
org.bzdev.ejws.EjwsStateTable
All Implemented Interfaces:
HttpSessionOps

public class EjwsStateTable extends Object implements HttpSessionOps
Ejws immplenation of the HttpSessionOps interface
  • 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

      public void remove(String sid)
      Description copied from interface: HttpSessionOps
      Remove a session ID from this object.
      Specified by:
      remove in interface HttpSessionOps
      Parameters:
      sid - the session ID
    • put

      public void put(String sid, Object state)
      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 interface HttpSessionOps
      Parameters:
      sid - the session ID
      state - an object representing the state of a session
    • rename

      public void rename(String oldID, String newID) throws IllegalStateException
      Description copied from interface: HttpSessionOps
      Rename a session implementation by changing the session ID referencing it.
      Specified by:
      rename in interface HttpSessionOps
      Parameters:
      oldID - the existing sessionID
      newID - the new sessionID
      Throws:
      IllegalStateException - oldID was not already added or newID was already added
    • contains

      public boolean contains(String sid)
      Description copied from interface: HttpSessionOps
      Determine if this object recognizes a session ID.
      Specified by:
      contains in interface HttpSessionOps
      Parameters:
      sid - the session ID
      Returns:
      true if the session exists; false otherwise
    • get

      public Object get(String sid)
      Description copied from interface: HttpSessionOps
      Get the session implementation associated with a session ID.
      Specified by:
      get in interface HttpSessionOps
      Parameters:
      sid - the session ID
      Returns:
      the session implementation