org.openmobileis.common.context
Interface SessionContextService

All Known Implementing Classes:
SessionContextManager

public interface SessionContextService


Method Summary
 SessionContext createSessionContext(java.lang.String id)
          create a new session context with the specified Id.
 SessionContext getSessionContext()
          return the session context associ�ted with the currentThread.
 SessionContext getSessionContext(java.lang.String id)
          return the session context with the specified id. return null if not found
 void invalidateSession(java.lang.String id)
           
 void joinSessionContext(java.lang.String id)
          Join the current thread to the SessionContext with the specified id.
 void leaveSessionContext()
          After a thread has use a session context.
 

Method Detail

getSessionContext

public SessionContext getSessionContext(java.lang.String id)
return the session context with the specified id. return null if not found


getSessionContext

public SessionContext 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.


createSessionContext

public SessionContext createSessionContext(java.lang.String id)
create a new session context with the specified Id.


joinSessionContext

public void joinSessionContext(java.lang.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.


invalidateSession

public void invalidateSession(java.lang.String id)

leaveSessionContext

public void leaveSessionContext()
After a thread has use a session context. Before ending it must leave the session context.



Copyright 2006 OpenMobileIS. All Rights Reserved.