public class CommsOperationRequest extends BaseRequest implements ICommsOperationRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
CommsOperationRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the CommsOperation
|
CommsOperationRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends CommsOperation> responseClass)
The request for the CommsOperation
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super CommsOperation> callback)
Delete this item from the service
|
ICommsOperationRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
CommsOperation |
get()
Gets the CommsOperation from the service
|
void |
get(ICallback<? super CommsOperation> callback)
Gets the CommsOperation from the service
|
CommsOperation |
patch(CommsOperation sourceCommsOperation)
Patches this CommsOperation with a source
|
void |
patch(CommsOperation sourceCommsOperation,
ICallback<? super CommsOperation> callback)
Patches this CommsOperation with a source
|
CommsOperation |
post(CommsOperation newCommsOperation)
Creates a CommsOperation with a new object
|
void |
post(CommsOperation newCommsOperation,
ICallback<? super CommsOperation> callback)
Creates a CommsOperation with a new object
|
CommsOperation |
put(CommsOperation newCommsOperation)
Creates a CommsOperation with a new object
|
void |
put(CommsOperation newCommsOperation,
ICallback<? super CommsOperation> callback)
Creates a CommsOperation with a new object
|
ICommsOperationRequest |
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 CommsOperationRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends CommsOperation> responseClass)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestresponseClass - the class of the responsepublic CommsOperationRequest(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 CommsOperation> callback)
get in interface ICommsOperationRequestcallback - the callback to be called after success or failurepublic CommsOperation get() throws ClientException
get in interface ICommsOperationRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super CommsOperation> callback)
delete in interface ICommsOperationRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface ICommsOperationRequestClientException - if there was an exception during the delete operationpublic void patch(CommsOperation sourceCommsOperation, ICallback<? super CommsOperation> callback)
patch in interface ICommsOperationRequestsourceCommsOperation - the source object with updatescallback - the callback to be called after success or failurepublic CommsOperation patch(CommsOperation sourceCommsOperation) throws ClientException
patch in interface ICommsOperationRequestsourceCommsOperation - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(CommsOperation newCommsOperation, ICallback<? super CommsOperation> callback)
post in interface ICommsOperationRequestnewCommsOperation - the new object to createcallback - the callback to be called after success or failurepublic CommsOperation post(CommsOperation newCommsOperation) throws ClientException
post in interface ICommsOperationRequestnewCommsOperation - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(CommsOperation newCommsOperation, ICallback<? super CommsOperation> callback)
put in interface ICommsOperationRequestnewCommsOperation - the object to create/updatecallback - the callback to be called after success or failurepublic CommsOperation put(CommsOperation newCommsOperation) throws ClientException
put in interface ICommsOperationRequestnewCommsOperation - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonpublic ICommsOperationRequest select(java.lang.String value)
select in interface ICommsOperationRequestvalue - the select clausepublic ICommsOperationRequest expand(java.lang.String value)
expand in interface ICommsOperationRequestvalue - the expand clause