|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.caleigo.security.SessionHandler
Field Summary
protected java.util.HashMapmSessions
Method Summary
voidcreateSession(UserInfo userInfo)
Creates a new session and associates a session objetc with it.
protected ISessioncreateSession(UserInfo userInfo,
int sessionID)
voiddestroySession(int sessionID)
protected intgenerateSessionID()
static SessionHandlergetInstance()
ISessiongetSession(int sessionID)
Returns an ISessesion object for the provided session id, or null
if no valid session exists.
booleanisValidSession(UserInfo userInfo,
int sessionID)
voidsetSessionClass(java.lang.Class sessionClass)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
mSessions
protected java.util.HashMap mSessions
Method Detail
getInstance
public static SessionHandler getInstance()
createSession
public void createSession(UserInfo userInfo)
destroySession
public void destroySession(int sessionID)
getSession
public ISession getSession(int sessionID)
null
if no valid session exists. Note that invoker of this method should not
cache the session object since it may be invalidated at any time.
isValidSession
public boolean isValidSession(UserInfo userInfo,
int sessionID)
setSessionClass
public void setSessionClass(java.lang.Class sessionClass)
generateSessionID
protected int generateSessionID()
createSession
protected ISession createSession(UserInfo userInfo,
int sessionID)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2005 Caleigo. All Rights Reserved.