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)
SessionStore
getOrCreateSessionId
in interface SessionStore
context
- the web contextpublic Object get(WebContext context, String key)
SessionStore
get
in interface SessionStore
context
- the web contextkey
- the key of the objectpublic void set(WebContext context, String key, Object value)
SessionStore
set
in interface SessionStore
context
- the web contextkey
- the key of the objectvalue
- the value to save in storeCopyright © 2016. All rights reserved.