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
|
getFullNameadd, 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, setVisiblepublic CoAPLDPNonRDFSource(java.lang.String name,
CoAPLDPResourceManager mng,
int type)
name - the name of the resourcemng - the reference resource managertype - the resource typeCoAPLDPResourceManagerpublic void setData(byte[] data)
data - the resource datapublic void handleGET(CoapExchange exchange)
handleGET in class CoapResourceexchange - the request objectCoapExchangepublic void handleDELETE(CoapExchange exchange)
handleDELETE in class CoapResourceexchange - the request objectCoapExchangepublic void handlePUT(CoapExchange exchange)
handlePUT in class CoapResourceexchange - the request objectCoapExchange