Package org.eclipse.jetty.session
Interface SessionDataMap
- All Superinterfaces:
LifeCycle
- All Known Subinterfaces:
SessionDataStore
- All Known Implementing Classes:
AbstractSessionDataStore
,CachingSessionDataStore
,FileSessionDataStore
,JDBCSessionDataStore
,NullSessionDataStore
,ObjectStreamSessionDataStore
SessionDataMap
A map style access to SessionData keyed by the session id.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Delete session datavoid
initialize
(SessionContext context) Initialize this data map for the given context.Read in session data.void
store
(String id, SessionData data) Store the session data.Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
-
Method Details
-
initialize
Initialize this data map for the given context. A SessionDataMap can only be used by one context(/session manager).- Parameters:
context
- context associated- Throws:
Exception
- if unable to initialize the
-
load
Read in session data.- Parameters:
id
- identity of session to load- Returns:
- the SessionData matching the id
- Throws:
Exception
- if unable to load session data
-
store
Store the session data.- Parameters:
id
- identity of session to storedata
- info of session to store- Throws:
Exception
- if unable to write session data
-
delete
Delete session data- Parameters:
id
- identity of session to delete- Returns:
- true if the session was deleted
- Throws:
Exception
- if unable to delete session data
-