|
deegree 2.5 (2011/06/29 09:44 build-8-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(java.lang.String user)
creates a session that never expires for a named user who will be authentificated through his name and password. |
static Session |
createSession(java.lang.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(java.lang.String id)
returns the session identified by its ID. |
Session |
getSessionByUser(java.lang.String user)
returns the session assigned to the passed user. |
Session |
removeSessionByID(java.lang.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()
public static Session createSession(java.lang.String user)
user - user name
public static Session createSession(java.lang.String user,
int duration)
user - user nameduration -
public static Session createSession()
public static Session createSession(int duration)
duration -
public Session getSessionByID(java.lang.String id)
throws SessionStatusException
getSessionByID in interface SessionManagerid -
SessionStatusException
public Session getSessionByUser(java.lang.String user)
throws SessionStatusException
getSessionByUser in interface SessionManageruser -
SessionStatusException
public void addSession(Session session)
throws SessionStatusException
addSession in interface SessionManagersession -
SessionStatusExceptionpublic Session removeSessionByID(java.lang.String id)
removeSessionByID in interface SessionManagerid -
public void clearExpired()
clearExpired in interface SessionManager
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org