public interface SessionStore<C extends WebContext>
Modifier and Type | Method and Description |
---|---|
SessionStore<C> |
buildFromTrackableSession(C context,
Object trackableSession)
Build a new session store from a trackable session.
|
boolean |
destroySession(C context)
Destroy the web session.
|
Object |
get(C context,
String key)
Get the object from its key in store.
|
String |
getOrCreateSessionId(C context)
Get or create the session identifier and initialize the session with it if necessary.
|
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,
String key,
Object value)
Save an object in the store by its key.
|
String getOrCreateSessionId(C context)
context
- the web contextObject get(C context, String key)
context
- the web contextkey
- the key of the objectvoid set(C context, String key, Object value)
context
- the web contextkey
- the key of the objectvalue
- the value to save in storeboolean destroySession(C context)
context
- the web contextObject getTrackableSession(C context)
context
- the web contextnull
if this is not supportedSessionStore<C> buildFromTrackableSession(C context, 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.