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