|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.mobilityrpc.session.impl.MobilityContextInternal
com.googlecode.mobilityrpc.session.MobilityContext
public class MobilityContext
Provides static methods which allow mobile objects which arrive on a remote machine to get a reference
to the MobilitySession in which they are executing, and to determine the ConnectionId
from which they were received.
| Method Summary | |
|---|---|
static ConnectionId |
getCurrentConnectionId()
Returns the ConnectionId from which the current request was received. |
static MobilitySession |
getCurrentSession()
Returns the MobilitySession in which the calling thread is executing. |
static boolean |
hasCurrentSession()
Returns true if the current thread has a session, otherwise false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MobilitySession getCurrentSession()
MobilitySession in which the calling thread is executing.
MobilitySession in which the calling thread is executing
IllegalStateException - If the current thread does not have a sessionpublic static boolean hasCurrentSession()
public static ConnectionId getCurrentConnectionId()
ConnectionId from which the current request was received.
ConnectionId from which the current request was received
IllegalStateException - If the current thread does not have a session
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||