public class LinkedResourceRequest extends BaseRequest implements ILinkedResourceRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
LinkedResourceRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the LinkedResource
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super LinkedResource> callback)
Delete this item from the service
|
ILinkedResourceRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
LinkedResource |
get()
Gets the LinkedResource from the service
|
void |
get(ICallback<? super LinkedResource> callback)
Gets the LinkedResource from the service
|
LinkedResource |
patch(LinkedResource sourceLinkedResource)
Patches this LinkedResource with a source
|
void |
patch(LinkedResource sourceLinkedResource,
ICallback<? super LinkedResource> callback)
Patches this LinkedResource with a source
|
LinkedResource |
post(LinkedResource newLinkedResource)
Creates a LinkedResource with a new object
|
void |
post(LinkedResource newLinkedResource,
ICallback<? super LinkedResource> callback)
Creates a LinkedResource with a new object
|
LinkedResource |
put(LinkedResource newLinkedResource)
Creates a LinkedResource with a new object
|
void |
put(LinkedResource newLinkedResource,
ICallback<? super LinkedResource> callback)
Creates a LinkedResource with a new object
|
ILinkedResourceRequest |
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 LinkedResourceRequest(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 LinkedResource> callback)
get in interface ILinkedResourceRequestcallback - the callback to be called after success or failurepublic LinkedResource get() throws ClientException
get in interface ILinkedResourceRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super LinkedResource> callback)
delete in interface ILinkedResourceRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface ILinkedResourceRequestClientException - if there was an exception during the delete operationpublic void patch(LinkedResource sourceLinkedResource, ICallback<? super LinkedResource> callback)
patch in interface ILinkedResourceRequestsourceLinkedResource - the source object with updatescallback - the callback to be called after success or failurepublic LinkedResource patch(LinkedResource sourceLinkedResource) throws ClientException
patch in interface ILinkedResourceRequestsourceLinkedResource - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(LinkedResource newLinkedResource, ICallback<? super LinkedResource> callback)
post in interface ILinkedResourceRequestnewLinkedResource - the new object to createcallback - the callback to be called after success or failurepublic LinkedResource post(LinkedResource newLinkedResource) throws ClientException
post in interface ILinkedResourceRequestnewLinkedResource - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(LinkedResource newLinkedResource, ICallback<? super LinkedResource> callback)
put in interface ILinkedResourceRequestnewLinkedResource - the object to create/updatecallback - the callback to be called after success or failurepublic LinkedResource put(LinkedResource newLinkedResource) throws ClientException
put in interface ILinkedResourceRequestnewLinkedResource - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonpublic ILinkedResourceRequest select(java.lang.String value)
select in interface ILinkedResourceRequestvalue - the select clausepublic ILinkedResourceRequest expand(java.lang.String value)
expand in interface ILinkedResourceRequestvalue - the expand clause