Definition at line 35 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 () |
synchronized SessionContext org.openmobileis.common.context.SessionContextManager.getSessionContext | ( | String | id | ) |
return the session context with the specified id.
return null if not found
Definition at line 65 of file SessionContextManager.java.
References org.openmobileis.common.context.SessionContext.SetIsNew().
synchronized SessionContext org.openmobileis.common.context.SessionContextManager.getSessionContext | ( | ) |
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 83 of file SessionContextManager.java.
References org.openmobileis.common.context.SessionContextManager.getNewID(), and org.openmobileis.common.context.SessionContext.SetIsNew().
synchronized void org.openmobileis.common.context.SessionContextManager.joinSessionContext | ( | String | id | ) |
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 119 of file SessionContextManager.java.
References org.openmobileis.common.context.SessionContextManager.createSessionContext().
synchronized void org.openmobileis.common.context.SessionContextManager.leaveSessionContext | ( | ) |
After a thread has use a session context.
Before ending it must leave the session context.
Definition at line 149 of file SessionContextManager.java.