public class J2ESessionStore extends Object implements SessionStore
| Constructor and Description |
|---|
J2ESessionStore() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(WebContext context,
String key)
Get the object from its key in store.
|
String |
getOrCreateSessionId(WebContext context)
Get or create the session identifier and initialize the session with it if necessary.
|
void |
set(WebContext context,
String key,
Object value)
Save an object in the store by its key.
|
public String getOrCreateSessionId(WebContext context)
SessionStoregetOrCreateSessionId in interface SessionStorecontext - the web contextpublic Object get(WebContext context, String key)
SessionStoreget in interface SessionStorecontext - the web contextkey - the key of the objectpublic void set(WebContext context, String key, Object value)
SessionStoreset in interface SessionStorecontext - the web contextkey - the key of the objectvalue - the value to save in storeCopyright © 2016. All Rights Reserved.