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