public class SessionContextManager extends Object
Each session is identified by the session id.
| Constructor and Description |
|---|
SessionContextManager()
Creates a new session context manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNewSessionContext(String sessionId,
SessionContext context)
Adds new session context for the given session id.
|
Map<String,SessionContext> |
getAllSessionContexts() |
SessionContext |
getSessionContextWithSessionId(String sessionId)
Gets session context related with given session id.
|
void |
removeSessionContextWithSessionId(String sessionId)
Removes the
SessionContext for the given id. |
public SessionContextManager()
public void addNewSessionContext(String sessionId, SessionContext context)
sessionId - session idcontext - session contextpublic SessionContext getSessionContextWithSessionId(String sessionId)
sessionId - session idpublic void removeSessionContextWithSessionId(String sessionId)
SessionContext for the given id.sessionId - session idpublic Map<String,SessionContext> getAllSessionContexts()
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.