public class CoAPLDPNonRDFSource extends CoAPLDPResource
Resource.ResourceTreeBuilder
Constructor and Description |
---|
CoAPLDPNonRDFSource(java.lang.String name,
CoAPLDPResourceManager mng,
int type)
Creates a new LDP Non-RDF Source.
|
Modifier and Type | Method and Description |
---|---|
void |
handleDELETE(CoapExchange exchange)
Manages LDP-CoAP DELETE requests.
|
void |
handleGET(CoapExchange exchange)
Manages LDP-CoAP requests (GET, OPTIONS, HEAD) exploiting the basic CoAP GET method.
|
void |
handlePUT(CoapExchange exchange)
Manages LDP-CoAP requests (PUT, PATCH) exploiting the basic CoAP PUT method.
|
void |
setData(byte[] data)
Sets the raw data of the resource
|
getFullName
add, add, add, addObserver, addObserveRelation, changed, checkObserveRelation, clearAndNotifyObserveRelations, clearObserveRelations, createClient, createClient, createClient, delete, execute, executeAndWait, getAttributes, getChild, getChildren, getEndpoints, getExecutor, getName, getObserverCount, getParent, getPath, getURI, handlePOST, handleRequest, isCachable, isObservable, isVisible, remove, remove, removeObserver, removeObserveRelation, setName, setObservable, setObserveType, setParent, setPath, setVisible
public CoAPLDPNonRDFSource(java.lang.String name, CoAPLDPResourceManager mng, int type)
name
- the name of the resourcemng
- the reference resource managertype
- the resource typeCoAPLDPResourceManager
public void setData(byte[] data)
data
- the resource datapublic void handleGET(CoapExchange exchange)
handleGET
in class CoapResource
exchange
- the request objectCoapExchange
public void handleDELETE(CoapExchange exchange)
handleDELETE
in class CoapResource
exchange
- the request objectCoapExchange
public void handlePUT(CoapExchange exchange)
handlePUT
in class CoapResource
exchange
- the request objectCoapExchange