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.
 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.
 
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

removeSessionContextWithSessionId

public void removeSessionContextWithSessionId(String sessionId)
Removes the SessionContext for the given id.

Parameters:
sessionId - session id

getAllSessionContexts

public Map<String,SessionContext> getAllSessionContexts()


Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.