org.marketcetera.util.ws.stateful
Class ClientContext
java.lang.Object
org.marketcetera.util.ws.stateless.StatelessClientContext
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
ClientContext
public ClientContext()
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.