com.accendia.iris.server
Class ClientContext

java.lang.Object
  extended by com.accendia.iris.server.ClientContext

public class ClientContext
extends java.lang.Object

The client context provides the client proxy and the client connection.


Method Summary
static java.lang.Object getClientProxy()
          Returns the client proxy corresponding to the connection that invoked the current executing method.
static IConnectionContext getConnectionContext()
          Returns an object that describes the connection that invoked the current executing method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClientProxy

public static java.lang.Object getClientProxy()
Returns the client proxy corresponding to the connection that invoked the current executing method. This method should only be called from a request dispatcher thread. The client context is unknown in an application thread.

Returns:
The client proxy for the connection that is making the call.

getConnectionContext

public static IConnectionContext getConnectionContext()
Returns an object that describes the connection that invoked the current executing method. This method should only be called from a request dispatcher thread. The client context is unknown in a thread spawned by the application commands.

Returns:
The client connection that is making the remote invocation.