public interface IDeviceRequest extends IHttpRequest
| 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)
Posts a Device with a new object
|
void |
post(Device newDevice,
ICallback<? super Device> callback)
Posts a Device with a new object
|
Device |
put(Device newDevice)
Posts a Device with a new object
|
void |
put(Device newDevice,
ICallback<? super Device> callback)
Posts a Device with a new object
|
IDeviceRequest |
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 Device> callback)
callback - the callback to be called after success or failureDevice get() throws ClientException
ClientException - this exception occurs if the request was unable to complete for any reasonvoid delete(ICallback<? super Device> callback)
callback - the callback when the deletion action has completedvoid delete()
throws ClientException
ClientException - if there was an exception during the delete operationvoid patch(Device sourceDevice, ICallback<? super Device> callback)
sourceDevice - the source object with updatescallback - the callback to be called after success or failureDevice patch(Device sourceDevice) throws ClientException
sourceDevice - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonvoid post(Device newDevice, ICallback<? super Device> callback)
newDevice - the new object to createcallback - the callback to be called after success or failureDevice post(Device newDevice) throws ClientException
newDevice - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonvoid put(Device newDevice, ICallback<? super Device> callback)
newDevice - the object to create/updatecallback - the callback to be called after success or failureDevice put(Device newDevice) throws ClientException
newDevice - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonIDeviceRequest select(java.lang.String value)
value - the select clauseIDeviceRequest expand(java.lang.String value)
value - the expand clause