| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.security.session.MemoryBasedSessionManager
public class MemoryBasedSessionManager
This exception shall be thrown when a session(ID) will be used that has been expired.
| Method Summary | |
|---|---|
 void | 
addSession(Session session)
adds a session to the session managment. the session will be stored within two lists. one addresses the session with its ID the other with its user name.  | 
 void | 
clearExpired()
removes all sessions that are expired from the session management  | 
static Session | 
createSession()
creates a session for an anonymous user that never expires  | 
static Session | 
createSession(int duration)
creates a session for an anonymous user that expires after the passed duration after the last access to it.  | 
static Session | 
createSession(String user)
creates a session that never expires for a named user who will be authentificated through his name and password.  | 
static Session | 
createSession(String user,
                           int duration)
creates a session for a named user who will be authentificated through his name and password.  | 
static MemoryBasedSessionManager | 
getInstance()
realizes Singelton pattern returns an instance of the SessionManager.  | 
 Session | 
getSessionByID(String id)
returns the session identified by its ID.  | 
 Session | 
getSessionByUser(String user)
returns the session assigned to the passed user.  | 
 Session | 
removeSessionByID(String id)
removes a session identified by its ID from the session managment. the removed session will be returned.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static MemoryBasedSessionManager getInstance()
must be invokedpublic static Session createSession(String user)
user - user name
public static Session createSession(String user,
                                    int duration)
user - user nameduration - 
public static Session createSession()
public static Session createSession(int duration)
duration - 
public Session getSessionByID(String id)
                       throws SessionStatusException
getSessionByID in interface SessionManagerid - 
SessionStatusException
public Session getSessionByUser(String user)
                         throws SessionStatusException
getSessionByUser in interface SessionManageruser - 
SessionStatusException
public void addSession(Session session)
                throws SessionStatusException
addSession in interface SessionManagersession - 
SessionStatusExceptionpublic Session removeSessionByID(String id)
removeSessionByID in interface SessionManagerid - 
public void clearExpired()
clearExpired in interface SessionManager
  | 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net