|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ideo.sweetdevria.page.SessionRegistry
public class SessionRegistry
Registry storing every user session an associating them a PageRegistry.
Method Summary | |
---|---|
void |
destroySession(javax.servlet.http.HttpSession session)
Remove a session from the session registry If multiple session are connected to a single page registry, all the sessions will have to be removed before the registry to be deleted. |
void |
forceDestroySession(javax.servlet.http.HttpSession session)
Force the session deletion from the session registry If multiple session are connected to a single page registry (multi user login), all the sessions will be deleted from the registry |
static SessionRegistry |
getInstance()
|
PageRegistry |
getPageRegistry(javax.servlet.http.HttpSession session)
Return a PageRegistry according to the session. |
boolean |
isSessionRegistered(javax.servlet.http.HttpSession session)
Test if a session is already registered, or if it is the first time an access is processed. |
void |
registerPage(javax.servlet.http.HttpSession session,
Page page)
Register a page for this session |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static SessionRegistry getInstance()
public boolean isSessionRegistered(javax.servlet.http.HttpSession session)
session
- the session to test
public PageRegistry getPageRegistry(javax.servlet.http.HttpSession session)
public void registerPage(javax.servlet.http.HttpSession session, Page page)
session
- the session of the userpage
- the page to registerpublic void destroySession(javax.servlet.http.HttpSession session)
session
- the session to remove.public void forceDestroySession(javax.servlet.http.HttpSession session)
session
- the session to remove.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |