public interface SessionStore<C extends WebContext>
| Modifier and Type | Method and Description |
|---|---|
SessionStore<C> |
buildFromTrackableSession(C context,
java.lang.Object trackableSession)
Build a new session store from a trackable session.
|
boolean |
destroySession(C context)
Destroy the web session.
|
java.lang.Object |
get(C context,
java.lang.String key)
Get the object from its key in store.
|
java.lang.String |
getOrCreateSessionId(C context)
Get or create the session identifier and initialize the session with it if necessary.
|
java.lang.Object |
getTrackableSession(C context)
Get the native session as a trackable object.
|
boolean |
renewSession(C context)
Renew the native session by copying all data to a new one.
|
void |
set(C context,
java.lang.String key,
java.lang.Object value)
Save an object in the store by its key.
|
java.lang.String getOrCreateSessionId(C context)
context - the web contextjava.lang.Object get(C context, java.lang.String key)
context - the web contextkey - the key of the objectvoid set(C context, java.lang.String key, java.lang.Object value)
context - the web contextkey - the key of the objectvalue - the value to save in storeboolean destroySession(C context)
context - the web contextjava.lang.Object getTrackableSession(C context)
context - the web contextnull if this is not supportedSessionStore<C> buildFromTrackableSession(C context, java.lang.Object trackableSession)
context - the web contexttrackableSession - the trackable sessionnull if this is not supportedboolean renewSession(C context)
context - the web contextCopyright © 2018. All Rights Reserved.