public class OperationRequest extends BaseRequest implements IOperationRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
OperationRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Operation
|
OperationRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends Operation> responseClass)
The request for the Operation
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<Operation> callback)
Delete this item from the service
|
IOperationRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Operation |
get()
Gets the Operation from the service
|
void |
get(ICallback<Operation> callback)
Gets the Operation from the service
|
Operation |
patch(Operation sourceOperation)
Patches this Operation with a source
|
void |
patch(Operation sourceOperation,
ICallback<Operation> callback)
Patches this Operation with a source
|
Operation |
post(Operation newOperation)
Creates a Operation with a new object
|
void |
post(Operation newOperation,
ICallback<Operation> callback)
Creates a Operation with a new object
|
IOperationRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, send, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCachesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCachespublic OperationRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends Operation> responseClass)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestresponseClass - the class of the responsepublic OperationRequest(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<Operation> callback)
get in interface IOperationRequestcallback - the callback to be called after success or failurepublic Operation get() throws ClientException
get in interface IOperationRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<Operation> callback)
delete in interface IOperationRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface IOperationRequestClientException - if there was an exception during the delete operationpublic void patch(Operation sourceOperation, ICallback<Operation> callback)
patch in interface IOperationRequestsourceOperation - the source object with updatescallback - the callback to be called after success or failurepublic Operation patch(Operation sourceOperation) throws ClientException
patch in interface IOperationRequestsourceOperation - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(Operation newOperation, ICallback<Operation> callback)
post in interface IOperationRequestnewOperation - the new object to createcallback - the callback to be called after success or failurepublic Operation post(Operation newOperation) throws ClientException
post in interface IOperationRequestnewOperation - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic IOperationRequest select(java.lang.String value)
select in interface IOperationRequestvalue - the select clausepublic IOperationRequest expand(java.lang.String value)
expand in interface IOperationRequestvalue - the expand clause