public class StatelessClientContext extends Object
StatelessClient.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.| Constructor and Description |
|---|
StatelessClientContext() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
AppId |
getAppId()
Returns the receiver's application ID.
|
NodeId |
getClientId()
Returns the receiver's client ID.
|
LocaleWrapper |
getLocale()
Returns the receiver's (wrapped) locale.
|
VersionId |
getVersionId()
Returns the receiver's version ID.
|
int |
hashCode() |
void |
setAppId(AppId appId)
Sets the receiver's application ID to the given one.
|
void |
setClientId(NodeId clientId)
Sets the receiver's client ID to the given one.
|
void |
setLocale(LocaleWrapper locale)
Sets the receiver's (wrapped) locale to the given one.
|
void |
setVersionId(VersionId versionId)
Sets the receiver's version ID to the given one.
|
String |
toString() |
public void setVersionId(VersionId versionId)
versionId - The version ID, which may be null.public VersionId getVersionId()
public void setAppId(AppId appId)
appId - The application ID, which may be null.public AppId getAppId()
public void setClientId(NodeId clientId)
clientId - The client ID, which may be null.public NodeId getClientId()
public void setLocale(LocaleWrapper locale)
locale - The (wrapped) locale, which may be null.public LocaleWrapper getLocale()
Copyright © 2015. All Rights Reserved.