public class CoAPLDPRDFSource extends CoAPLDPResource
Resource.ResourceTreeBuilder| Constructor and Description |
|---|
CoAPLDPRDFSource(java.lang.String name,
CoAPLDPResourceManager mng)
Creates a new LDP RDF Source.
|
CoAPLDPRDFSource(java.lang.String name,
CoAPLDPResourceManager mng,
java.lang.String type)
Creates a new LDP RDF Source with a specific type (in addition to the basic RDFSource type).
|
CoAPLDPRDFSource(java.lang.String name,
java.lang.String path,
CoAPLDPResourceManager mng)
Creates a new LDP RDF Source (as subresource).
|
CoAPLDPRDFSource(java.lang.String name,
java.lang.String path,
CoAPLDPResourceManager mng,
java.lang.String type)
Creates a new LDP RDF Source (as subresource) with a specific type (in addition to the basic RDFSource type).
|
| 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 |
setDataHandler(LDPDataHandler dh)
Sets a data handler to manage the RDF data
|
void |
setRDFCreated()
Sets the created RDF property for the resource using current timestamp.
|
void |
setRDFDescription(java.lang.String description)
Sets the description RDF property for the resource.
|
void |
setRDFTitle(java.lang.String title)
Sets the title RDF property for the resource.
|
void |
startPublishData()
Starts the publication of RDF data retrieved by the resource data handler
|
void |
stopPublishData()
Stops the publication of RDF data retrieved by the resource data handler
|
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 CoAPLDPRDFSource(java.lang.String name,
CoAPLDPResourceManager mng)
name - the name of the resourcemng - the reference resource managerCoAPLDPResourceManagerpublic CoAPLDPRDFSource(java.lang.String name,
java.lang.String path,
CoAPLDPResourceManager mng)
name - the name of the resourcepath - the path of the root resourcemng - the reference resource managerCoAPLDPResourceManagerpublic CoAPLDPRDFSource(java.lang.String name,
CoAPLDPResourceManager mng,
java.lang.String type)
name - the name of the resourcemng - the reference resource managertype - the additional type for the resourceCoAPLDPResourceManagerpublic CoAPLDPRDFSource(java.lang.String name,
java.lang.String path,
CoAPLDPResourceManager mng,
java.lang.String type)
name - the name of the resourcepath - the path of the root resourcemng - the reference resource managertype - the additional type for the resourceCoAPLDPResourceManagerpublic void handleGET(CoapExchange exchange)
handleGET in class CoapResourceexchange - the request objectCoapExchangepublic void handlePUT(CoapExchange exchange)
handlePUT in class CoapResourceexchange - the request objectCoapExchangepublic void handleDELETE(CoapExchange exchange)
handleDELETE in class CoapResourceexchange - the request objectCoapExchangepublic void setRDFDescription(java.lang.String description)
description - the text to be used as descriptionpublic void setRDFTitle(java.lang.String title)
title - the text to be used as titlepublic void setRDFCreated()
public void setDataHandler(LDPDataHandler dh)
dh - the data handler to be usedLDPDataHandlerpublic void startPublishData()
public void stopPublishData()