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
|
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 CoAPLDPRDFSource(java.lang.String name, CoAPLDPResourceManager mng)
name
- the name of the resourcemng
- the reference resource managerCoAPLDPResourceManager
public 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 managerCoAPLDPResourceManager
public 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 resourceCoAPLDPResourceManager
public 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 resourceCoAPLDPResourceManager
public void handleGET(CoapExchange exchange)
handleGET
in class CoapResource
exchange
- the request objectCoapExchange
public void handlePUT(CoapExchange exchange)
handlePUT
in class CoapResource
exchange
- the request objectCoapExchange
public void handleDELETE(CoapExchange exchange)
handleDELETE
in class CoapResource
exchange
- the request objectCoapExchange
public 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 usedLDPDataHandler
public void startPublishData()
public void stopPublishData()