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(since="2021-05-27") public interface SessionDataMap extends LifeCycle
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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleandelete(java.lang.String id)Deprecated.Delete session datavoidinitialize(SessionContext context)Deprecated.Initialize this data map for the given context.SessionDataload(java.lang.String id)Deprecated.Read in session data.voidstore(java.lang.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 Detail
- 
initialize
void initialize(SessionContext context) throws java.lang.Exception
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:
 java.lang.Exception- if unable to initialize the
 
- 
load
SessionData load(java.lang.String id) throws java.lang.Exception
Deprecated.Read in session data.- Parameters:
 id- identity of session to load- Returns:
 - the SessionData matching the id
 - Throws:
 java.lang.Exception- if unable to load session data
 
- 
store
void store(java.lang.String id, SessionData data) throws java.lang.ExceptionDeprecated.Store the session data.- Parameters:
 id- identity of session to storedata- info of session to store- Throws:
 java.lang.Exception- if unable to write session data
 
- 
delete
boolean delete(java.lang.String id) throws java.lang.ExceptionDeprecated.Delete session data- Parameters:
 id- identity of session to delete- Returns:
 - true if the session was deleted
 - Throws:
 java.lang.Exception- if unable to delete session data
 
 - 
 
 -