Definition at line 37 of file SessionContextManager.java.
Public Member Functions | |
SessionContextManager () | |
synchronized SessionContext | getSessionContext (String id) |
return the session context with the specified id. | |
synchronized SessionContext | getSessionContext () |
return the session context associéted with the currentThread. | |
synchronized SessionContext | createSessionContext (String id) |
create a new session context with the specified Id. | |
synchronized void | joinSessionContext (String id) |
Join the current thread to the SessionContext with the specified id. | |
synchronized void | invalidateSession (String id) |
synchronized void | leaveSessionContext () |
After a thread has use a session context. | |
Static Public Member Functions | |
static final void | registerManager (SessionContextManager newManager) |
static final SessionContextManager | getManager () |
Protected Member Functions | |
SessionContext | realCreateSessionContext (String id) |
Static Package Functions | |
static synchronized long | getNewID () |
|
return the session context associéted with the currentThread. Null if not session is associated with the current thread. The method joinSessionContext must have been call before. Definition at line 85 of file SessionContextManager.java. References org.openmobileis.common.context.SessionContextManager.getNewID(), and org.openmobileis.common.context.SessionContext.SetIsNew(). |
|
return the session context with the specified id. return null if not found Definition at line 67 of file SessionContextManager.java. References org.openmobileis.common.context.SessionContext.SetIsNew(). |
|
Join the current thread to the SessionContext with the specified id. If no SessionContext has the id create it. A thread can only join one SessionContext. Definition at line 120 of file SessionContextManager.java. References org.openmobileis.common.context.SessionContextManager.createSessionContext(). |
|
After a thread has use a session context. Before ending it must leave the session context. Definition at line 150 of file SessionContextManager.java. |