Interface SessionManagementStrategy
-
- All Known Implementing Classes:
LocalSessionManagementStrategy
public interface SessionManagementStrategyDefines a session management strategy.- Version:
- $Revision: 1 $
- Author:
- Scott Rossillo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Removes all sessions.Collection<javax.servlet.http.HttpSession>getAll()Returns a collection containing all sessions.javax.servlet.http.HttpSessionremove(String id)The unique identifier for the session to remove.voidstore(javax.servlet.http.HttpSession session)Stores the given session.
-
-
-
Method Detail
-
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
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
HttpSessionif it exists;nullotherwise
-
-