Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

openfuture.bugbase.servlet
Class SessionManager  view SessionManager download SessionManager.java

java.lang.Object
  extended byopenfuture.bugbase.servlet.SessionManager

public class SessionManager
extends java.lang.Object

Manages Sessions. The SessionManager intantiates lazily.

Created: Sun Jul 02 15:46:33 2000

Version:
$Revision: 1.3 $

Field Summary
private static SessionManager instance
           
private static java.util.HashMap sessionMap
           
 
Constructor Summary
private SessionManager()
           
 
Method Summary
protected static SessionManager getInstance()
          Get the value of instance.
static openfuture.bugbase.model.Session getSession(java.lang.Integer sessionID)
          Returns the session with the given session id.
protected  java.util.HashMap getSessionMap()
          Get the value of sessionMap.
static void init()
          Create an instance of the SessionManager.
static openfuture.bugbase.model.Session register(java.lang.String userid)
          Adds a session for the given userid to the session map.
protected  void setSessionMap(java.util.HashMap v)
          Set the value of sessionMap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static SessionManager instance

sessionMap

private static java.util.HashMap sessionMap
Constructor Detail

SessionManager

private SessionManager()
Method Detail

init

public static void init()
Create an instance of the SessionManager.


register

public static openfuture.bugbase.model.Session register(java.lang.String userid)
Adds a session for the given userid to the session map.


getSession

public static openfuture.bugbase.model.Session getSession(java.lang.Integer sessionID)
Returns the session with the given session id. Returns null, if no valid session exists.


getSessionMap

protected java.util.HashMap getSessionMap()
Get the value of sessionMap.


setSessionMap

protected void setSessionMap(java.util.HashMap v)
Set the value of sessionMap.


getInstance

protected static SessionManager getInstance()
Get the value of instance.