org.marketcetera.util.ws.stateful
Class ClientContext

java.lang.Object
  extended by org.marketcetera.util.ws.stateless.StatelessClientContext
      extended by org.marketcetera.util.ws.stateful.ClientContext

public class ClientContext
extends StatelessClientContext

The client context which the client must supply as an argument to every stateful remote call. Client.getContext() is the preferred way for service clients to obtain a ready-to-use context. It conveys key (but optional) information about the client to the server.

Since:
1.0.0
Version:
$Id: ClientContext.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Constructor Summary
ClientContext()
           
 
Method Summary
 boolean equals(Object other)
           
 SessionId getSessionId()
          Returns the receiver's session ID.
 int hashCode()
           
 void setSessionId(SessionId sessionId)
          Sets the receiver's session ID to the given one.
 String toString()
           
 
Methods inherited from class org.marketcetera.util.ws.stateless.StatelessClientContext
getAppId, getClientId, getLocale, getVersionId, setAppId, setClientId, setLocale, setVersionId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientContext

public ClientContext()
Method Detail

setSessionId

public void setSessionId(SessionId sessionId)
Sets the receiver's session ID to the given one.

Parameters:
sessionId - The session ID, which may be null.

getSessionId

public SessionId getSessionId()
Returns the receiver's session ID.

Returns:
The session ID, which may be null.

toString

public String toString()
Overrides:
toString in class StatelessClientContext

hashCode

public int hashCode()
Overrides:
hashCode in class StatelessClientContext

equals

public boolean equals(Object other)
Overrides:
equals in class StatelessClientContext


Copyright © 2012. All Rights Reserved.