Package org.eclipse.jetty.server.session
Interface SessionDataMap
- All Superinterfaces:
LifeCycle
- All Known Subinterfaces:
SessionDataStore
- All Known Implementing Classes:
AbstractSessionDataStore,CachingSessionDataStore,FileSessionDataStore,JDBCSessionDataStore,NullSessionDataStore
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
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 TypeMethodDescriptionbooleanDeprecated.Delete session datavoidinitialize(SessionContext context) Deprecated.Initialize this data map for the given context.Deprecated.Read in session data.voidstore(String id, SessionData data) Deprecated.Store the session data.Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Method Details
-
initialize
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
-