public interface IContractRequest extends IHttpRequest
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super Contract> callback)
Delete this item from the service
|
IContractRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Contract |
get()
Gets the Contract from the service
|
void |
get(ICallback<? super Contract> callback)
Gets the Contract from the service
|
Contract |
patch(Contract sourceContract)
Patches this Contract with a source
|
void |
patch(Contract sourceContract,
ICallback<? super Contract> callback)
Patches this Contract with a source
|
Contract |
post(Contract newContract)
Posts a Contract with a new object
|
void |
post(Contract newContract,
ICallback<? super Contract> callback)
Posts a Contract with a new object
|
Contract |
put(Contract newContract)
Posts a Contract with a new object
|
void |
put(Contract newContract,
ICallback<? super Contract> callback)
Posts a Contract with a new object
|
IContractRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodvoid get(ICallback<? super Contract> callback)
callback - the callback to be called after success or failureContract get() throws ClientException
ClientException - this exception occurs if the request was unable to complete for any reasonvoid delete(ICallback<? super Contract> callback)
callback - the callback when the deletion action has completedvoid delete()
throws ClientException
ClientException - if there was an exception during the delete operationvoid patch(Contract sourceContract, ICallback<? super Contract> callback)
sourceContract - the source object with updatescallback - the callback to be called after success or failureContract patch(Contract sourceContract) throws ClientException
sourceContract - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonvoid post(Contract newContract, ICallback<? super Contract> callback)
newContract - the new object to createcallback - the callback to be called after success or failureContract post(Contract newContract) throws ClientException
newContract - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonvoid put(Contract newContract, ICallback<? super Contract> callback)
newContract - the object to create/updatecallback - the callback to be called after success or failureContract put(Contract newContract) throws ClientException
newContract - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonIContractRequest select(java.lang.String value)
value - the select clauseIContractRequest expand(java.lang.String value)
value - the expand clause