public interface Resource
Modifier and Type | Method and Description |
---|---|
Response |
delete(java.util.Map<java.lang.String,java.lang.String> headers)
Delete a resource of a device with the DELETE method
and return a response when ready.
|
Response |
get(java.util.Map<java.lang.String,java.lang.String> queryparam,
java.util.Map<java.lang.String,java.lang.String> headers)
Invoke the resource GET method and return a response when ready.
|
java.lang.String |
getDescription()
Get the free form description of this resource.
|
java.lang.String |
getDeviceId()
Get the device identifier this resource belongs to
|
java.lang.String |
getId()
Get the resource identifier
|
java.util.List<java.lang.String> |
getMethods()
Get the methods allowed on this resource.
|
java.lang.String |
getURL()
Get the relative url to access this resource.
|
Response |
post(java.util.Map<java.lang.String,java.lang.String> queryparam,
java.util.Map<java.lang.String,java.lang.String> headers,
byte[] body)
Update a resource of a device with the POST method
and return a response when ready.
|
Response |
put(java.util.Map<java.lang.String,java.lang.String> queryparam,
java.util.Map<java.lang.String,java.lang.String> headers,
byte[] body)
Update a resource of a device with the PUT method
and returns the response when ready.
|
java.lang.String getDeviceId()
java.lang.String getId()
java.lang.String getDescription()
java.lang.String getURL()
java.util.List<java.lang.String> getMethods()
Response get(java.util.Map<java.lang.String,java.lang.String> queryparam, java.util.Map<java.lang.String,java.lang.String> headers) throws java.lang.Exception
queryparam
- Map
of String
, String
queryheaders
- Map
of String
, String
the request headers.java.lang.Exception
- if GET is not implementedResponse put(java.util.Map<java.lang.String,java.lang.String> queryparam, java.util.Map<java.lang.String,java.lang.String> headers, byte[] body) throws java.lang.Exception
queryparam
- Map
of String
, String
queryheaders
- Map
of String
, String
the request headers.body
- the request body content.java.lang.Exception
- if PUT is not implementedResponse post(java.util.Map<java.lang.String,java.lang.String> queryparam, java.util.Map<java.lang.String,java.lang.String> headers, byte[] body) throws java.lang.Exception
queryparam
- Map
of String
, String
queryheaders
- Map
of String
, String
the request headers.body
- the request body content.java.lang.Exception
- if POST is not implementedResponse delete(java.util.Map<java.lang.String,java.lang.String> headers) throws java.lang.Exception
headers
- Map
of String
, String
the request headers.java.lang.Exception
- if DELETE is not implemented