public abstract class CoAPLDPContainer extends CoAPLDPRDFSource
Resource.ResourceTreeBuilder
Constructor and Description |
---|
CoAPLDPContainer(java.lang.String name,
java.lang.String path,
CoAPLDPResourceManager mng)
Creates a new LDP Container.
|
Modifier and Type | Method and Description |
---|---|
void |
addAcceptPostType(int ct)
Adds a content-type accepted by the container for POST requests.
|
abstract CoAPLDPBasicContainer |
createBasicContainer(java.lang.String name)
Creates a new LDP Basic Container as contained object.
|
abstract CoAPLDPDirectContainer |
createDirectContainer(java.lang.String name,
java.lang.String member,
java.lang.String memberType,
java.lang.String memberRelation,
java.lang.String isMemberOfRelation)
Creates a new LDP Direct Container as contained object.
|
abstract CoAPLDPIndirectContainer |
createIndirectContainer(java.lang.String name,
java.lang.String member,
java.lang.String memberType,
java.lang.String memberRelation,
java.lang.String insertedContentRelation)
Creates a new LDP Indirect Container as contained object.
|
abstract CoAPLDPNonRDFSource |
createNonRDFSource(java.lang.String name,
int mediaType)
Creates a new LDP Non-RDF Source as contained object.
|
abstract CoAPLDPRDFSource |
createRDFSource(java.lang.String name)
Creates a new LDP RDF Source as contained object.
|
abstract CoAPLDPRDFSource |
createRDFSource(java.lang.String name,
java.lang.String type)
Creates a new LDP RDF Source as contained object.
|
void |
handlePUT(CoapExchange exchange)
Manages LDP-CoAP requests (PUT, PATCH) exploiting the basic CoAP PUT method.
|
handleDELETE, handleGET, setDataHandler, setRDFCreated, setRDFDescription, setRDFTitle, startPublishData, stopPublishData
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 CoAPLDPContainer(java.lang.String name, java.lang.String path, CoAPLDPResourceManager mng)
name
- the name of the containerpath
- the path of the root resource (if present)mng
- the reference resource managerCoAPLDPResourceManager
public void addAcceptPostType(int ct)
ct
- the accepted content-type value as defined in MediaTypeRegistryMediaTypeRegistry
public void handlePUT(CoapExchange exchange)
CoAPLDPRDFSource
handlePUT
in class CoAPLDPRDFSource
exchange
- the request objectCoapExchange
public abstract CoAPLDPRDFSource createRDFSource(java.lang.String name)
name
- the name of the contained resourcepublic abstract CoAPLDPRDFSource createRDFSource(java.lang.String name, java.lang.String type)
name
- the name of the contained resourcetype
- the type of the contained resourcepublic abstract CoAPLDPNonRDFSource createNonRDFSource(java.lang.String name, int mediaType)
name
- the name of the contained resourcemediaType
- the content-type value of the contained resource as defined in MediaTypeRegistryMediaTypeRegistry
public abstract CoAPLDPBasicContainer createBasicContainer(java.lang.String name)
name
- the name of the contained resourcepublic abstract CoAPLDPDirectContainer createDirectContainer(java.lang.String name, java.lang.String member, java.lang.String memberType, java.lang.String memberRelation, java.lang.String isMemberOfRelation)
name
- the name of the contained resourcemember
- the name of the member resource of the created Direct ContainermemberType
- the type of the member resource of the created Direct ContainermemberRelation
- the memberRelation property of the created Direct Container (if present)isMemberOfRelation
- the isMemberOfRelation property of the created Direct Container (if present)public abstract CoAPLDPIndirectContainer createIndirectContainer(java.lang.String name, java.lang.String member, java.lang.String memberType, java.lang.String memberRelation, java.lang.String insertedContentRelation)
name
- the name of the contained resourcemember
- the name of the member resource of the created Indirect ContainermemberType
- the type of the member resource of the created Indirect ContainermemberRelation
- the memberRelation property of the created Indirect ContainerinsertedContentRelation
- the insertedContentRelation property of the created Indirect Container