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 TypeMethodDescriptionvoid
clear()
Removes all sessions.Collection<javax.servlet.http.HttpSession>
getAll()
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 knownHttpSession
s, if any; an emptyCollection
otherwise
-
store
void store(javax.servlet.http.HttpSession session) Stores the given session.- Parameters:
session
- theHttpSession
to store (required)
-
remove
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
-