public interface SessionStore<C extends WebContext>
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
default void | 
invalidateSession(C context)
Invalidate the whole session. 
 | 
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 storedefault void invalidateSession(C context)
context - the web contextCopyright © 2017. All rights reserved.