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 TypeMethodDescriptionvoidclear()Removes all sessions.Collection<javax.servlet.http.HttpSession>getAll()Returns a collection containing all sessions.javax.servlet.http.HttpSessionThe unique identifier for the session to remove.voidstore(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
Collectionof all knownHttpSessions, if any; an emptyCollectionotherwise
-
store
void store(javax.servlet.http.HttpSession session) Stores the given session.- Parameters:
session- theHttpSessionto store (required)
-
remove
The unique identifier for the session to remove.- Parameters:
id- the unique identifier for the session to remove (required)- Returns:
- the
HttpSessionif it exists;nullotherwise
-