Package org.eclipse.jetty.server.session
Interface SessionDataMap
-
- All Superinterfaces:
org.eclipse.jetty.util.component.LifeCycle
- All Known Subinterfaces:
SessionDataStore
- All Known Implementing Classes:
AbstractSessionDataStore,CachingSessionDataStore,FileSessionDataStore,JDBCSessionDataStore,NullSessionDataStore
public interface SessionDataMap extends org.eclipse.jetty.util.component.LifeCycleSessionDataMap A map style access to SessionData keyed by the session id.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandelete(String id)Delete session datavoidinitialize(SessionContext context)Initialize this data map for the given context.SessionDataload(String id)Read in session data.voidstore(String id, SessionData data)Store the session data.
-
-
-
Method Detail
-
initialize
void initialize(SessionContext context) throws Exception
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
SessionData load(String id) throws Exception
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
void store(String id, SessionData data) throws Exception
Store the session data.- Parameters:
id- identity of session to storedata- info of session to store- Throws:
Exception- if unable to write session data
-
-