Interface SessionManagementStrategy

All Known Implementing Classes:
LocalSessionManagementStrategy

public interface SessionManagementStrategy
Defines a session management strategy.
Version:
$Revision: 1 $
Author:
Scott Rossillo
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Removes all sessions.
    Collection<javax.servlet.http.HttpSession>
    Returns a collection containing all sessions.
    javax.servlet.http.HttpSession
    The unique identifier for the session to remove.
    void
    store(javax.servlet.http.HttpSession session)
    Stores the given session.
  • Method Details

    • clear

      void clear()
      Removes all sessions.
    • getAll

      Collection<javax.servlet.http.HttpSession> getAll()
      Returns a collection containing all sessions.
      Returns:
      a Collection of all known HttpSessions, if any; an empty Collection otherwise
    • store

      void store(javax.servlet.http.HttpSession session)
      Stores the given session.
      Parameters:
      session - the HttpSession to store (required)
    • remove

      javax.servlet.http.HttpSession remove(String id)
      The unique identifier for the session to remove.
      Parameters:
      id - the unique identifier for the session to remove (required)
      Returns:
      the HttpSession if it exists; null otherwise