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 17411 2017-04-28 14:50:38Z colin $
- Author:
- tlerios@marketcetera.com
-
-
Constructor Summary
Constructors Constructor Description ClientContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)SessionIdgetSessionId()Get the sessionId value.StringgetUsername()Get the username value.inthashCode()voidsetSessionId(SessionId inSessionId)Sets the sessionId value.voidsetUsername(String inUsername)Sets the username value.StringtoString()-
Methods inherited from class org.marketcetera.util.ws.stateless.StatelessClientContext
getAppId, getClientId, getLocale, getVersionId, setAppId, setClientId, setLocale, setVersionId
-
-
-
-
Method Detail
-
getSessionId
public SessionId getSessionId()
Get the sessionId value.- Returns:
- a
SessionIdvalue
-
setSessionId
public void setSessionId(SessionId inSessionId)
Sets the sessionId value.- Parameters:
inSessionId- aSessionIdvalue
-
getUsername
public String getUsername()
Get the username value.- Returns:
- a
Stringvalue
-
setUsername
public void setUsername(String inUsername)
Sets the username value.- Parameters:
inUsername- aStringvalue
-
toString
public String toString()
- Overrides:
toStringin classStatelessClientContext
-
hashCode
public int hashCode()
- Overrides:
hashCodein classStatelessClientContext
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classStatelessClientContext
-
-