public class PresenceRequest extends BaseRequest implements IPresenceRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
PresenceRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Presence
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super Presence> callback)
Delete this item from the service
|
IPresenceRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Presence |
get()
Gets the Presence from the service
|
void |
get(ICallback<? super Presence> callback)
Gets the Presence from the service
|
Presence |
patch(Presence sourcePresence)
Patches this Presence with a source
|
void |
patch(Presence sourcePresence,
ICallback<? super Presence> callback)
Patches this Presence with a source
|
Presence |
post(Presence newPresence)
Creates a Presence with a new object
|
void |
post(Presence newPresence,
ICallback<? super Presence> callback)
Creates a Presence with a new object
|
Presence |
put(Presence newPresence)
Creates a Presence with a new object
|
void |
put(Presence newPresence,
ICallback<? super Presence> callback)
Creates a Presence with a new object
|
IPresenceRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, send, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic PresenceRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestpublic void get(ICallback<? super Presence> callback)
get in interface IPresenceRequestcallback - the callback to be called after success or failurepublic Presence get() throws ClientException
get in interface IPresenceRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super Presence> callback)
delete in interface IPresenceRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface IPresenceRequestClientException - if there was an exception during the delete operationpublic void patch(Presence sourcePresence, ICallback<? super Presence> callback)
patch in interface IPresenceRequestsourcePresence - the source object with updatescallback - the callback to be called after success or failurepublic Presence patch(Presence sourcePresence) throws ClientException
patch in interface IPresenceRequestsourcePresence - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(Presence newPresence, ICallback<? super Presence> callback)
post in interface IPresenceRequestnewPresence - the new object to createcallback - the callback to be called after success or failurepublic Presence post(Presence newPresence) throws ClientException
post in interface IPresenceRequestnewPresence - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(Presence newPresence, ICallback<? super Presence> callback)
put in interface IPresenceRequestnewPresence - the object to create/updatecallback - the callback to be called after success or failurepublic Presence put(Presence newPresence) throws ClientException
put in interface IPresenceRequestnewPresence - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonpublic IPresenceRequest select(java.lang.String value)
select in interface IPresenceRequestvalue - the select clausepublic IPresenceRequest expand(java.lang.String value)
expand in interface IPresenceRequestvalue - the expand clause