openfuture.bugbase.servlet
Class SessionManager

java.lang.Object
  |
  +--openfuture.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 $
Author:
Wolfgang Reissenberger

Method Summary
protected static SessionManager getInstance()
          Get the value of instance.
static 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 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
 

Method Detail

init

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

register

public static Session register(java.lang.String userid)
Adds a session for the given userid to the session map.
Parameters:
userid - userid to be registered
Returns:
the created session

getSession

public static Session getSession(java.lang.Integer sessionID)
Returns the session with the given session id. Returns null, if no valid session exists.
Parameters:
sessionID - session ID
Returns:
session with the given session id.

getSessionMap

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

setSessionMap

protected void setSessionMap(java.util.HashMap v)
Set the value of sessionMap.
Parameters:
v - Value to assign to sessionMap.

getInstance

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


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.