org.apache.webbeans.web.context
Class SessionContextManager

java.lang.Object
  extended by org.apache.webbeans.web.context.SessionContextManager

public class SessionContextManager
extends Object

Session context manager.

Each session is identified by the session id.

Version:
$Rev$ $Date$

Constructor Summary
SessionContextManager()
          Creates a new session context manager.
 
Method Summary
 void addNewSessionContext(String sessionId, SessionContext context)
          Adds new session context for the given session id.
 void destroyAllSessions()
          Destroys all sessions.
 void destroySessionContextWithSessionId(String sessionId)
          Destroy session context with given id.
 SessionContext getSessionContextWithSessionId(String sessionId)
          Gets session context related with given session id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionContextManager

public SessionContextManager()
Creates a new session context manager.

Method Detail

addNewSessionContext

public void addNewSessionContext(String sessionId,
                                 SessionContext context)
Adds new session context for the given session id.

Parameters:
sessionId - session id
context - session context

getSessionContextWithSessionId

public SessionContext getSessionContextWithSessionId(String sessionId)
Gets session context related with given session id.

Parameters:
sessionId - session id
Returns:
session context related with given session id

destroySessionContextWithSessionId

public void destroySessionContextWithSessionId(String sessionId)
Destroy session context with given id.

Parameters:
sessionId - session id

destroyAllSessions

public void destroyAllSessions()
Destroys all sessions.



Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.