public class DeviceReferenceRequest extends BaseRequest implements IDeviceReferenceRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING
Constructor and Description |
---|
DeviceReferenceRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Device
|
Modifier and Type | Method and Description |
---|---|
Device |
delete() |
void |
delete(ICallback<? super Device> callback) |
IDeviceReferenceRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Device |
put(Device srcDevice)
Puts the Device
|
void |
put(Device srcDevice,
ICallback<? super Device> callback)
Puts the Device
|
IDeviceReferenceRequest |
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, withHttpMethod
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethod
public DeviceReferenceRequest(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 delete(ICallback<? super Device> callback)
delete
in interface IDeviceReferenceRequest
public Device delete() throws ClientException
delete
in interface IDeviceReferenceRequest
ClientException
public IDeviceReferenceRequest select(java.lang.String value)
select
in interface IDeviceReferenceRequest
value
- the select clausepublic IDeviceReferenceRequest expand(java.lang.String value)
expand
in interface IDeviceReferenceRequest
value
- the expand clausepublic void put(Device srcDevice, ICallback<? super Device> callback)
put
in interface IDeviceReferenceRequest
srcDevice
- the Device reference to PUTcallback
- the callback to be called after success or failurepublic Device put(Device srcDevice) throws ClientException
put
in interface IDeviceReferenceRequest
srcDevice
- the Device reference to PUTClientException
- an exception occurs if there was an error while the request was sent