@Service(value={java.lang.Object.class,DiscobitsHandler.class})
@Property(name="org.apache.clerezza.platform.typehandler",
boolValue=true)
@Reference(name="metaDataGenerator",
policy=DYNAMIC,
cardinality=OPTIONAL_MULTIPLE,
referenceInterface=org.apache.clerezza.rdf.metadata.MetaDataGenerator.class)
public class DiscobitsTypeHandler
extends AbstractDiscobitsHandler
implements DiscobitsHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.clerezza.platform.graphprovider.content.ContentGraphProvider |
cgProvider |
static String |
MAX_AGE |
| Constructor and Description |
|---|
DiscobitsTypeHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
protected void |
bindMetaDataGenerator(org.apache.clerezza.rdf.metadata.MetaDataGenerator generator) |
javax.ws.rs.core.Response |
delete(javax.ws.rs.core.UriInfo uriInfo)
Deletes a hierarchy node
|
protected Set<org.apache.clerezza.rdf.metadata.MetaDataGenerator> |
getMetaDataGenerators()
A
Set containing MetaDataGenerators to be used
to add meta data to data putted by the handler. |
protected org.apache.clerezza.rdf.core.MGraph |
getMGraph() |
Object |
getResource(javax.ws.rs.core.UriInfo uriInfo)
TypeHandle method for rdf types "TitledContext", "InfoDiscoBit",
"OrderedContent" and "XHTMLInfoDiscoBit".
|
Object |
mkcol(javax.ws.rs.core.UriInfo uriInfo)
Creates a new collection at the specified uri
|
javax.ws.rs.core.Response |
move(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders headers)
Moves or renames a hierarchy node
|
javax.ws.rs.core.Response |
options(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
propfind(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders headers,
DOMSource body)
Finds all properties of a hierarchy node and returns them in a
DOMSource |
javax.ws.rs.core.Response |
proppatch(javax.ws.rs.core.UriInfo uriInfo,
DOMSource body) |
javax.ws.rs.core.Response |
putInfoDiscobit(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders headers,
byte[] data)
Creates an
InfoDiscoBit at the specified location |
protected void |
unbindMetaDataGenerator(org.apache.clerezza.rdf.metadata.MetaDataGenerator generator) |
getData, getMediaType, put, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getMediaType, put, remove@Property(value="600",
label="Max-Age",
description="Specifies the value of the max-age fieldset in the cache-control header of InfoDiscoBit-Responses, as per RFC 2616 this is a number of seconds")
public static final String MAX_AGE
@Reference protected org.apache.clerezza.platform.graphprovider.content.ContentGraphProvider cgProvider
protected void activate(org.osgi.service.component.ComponentContext context)
public Object getResource(@Context javax.ws.rs.core.UriInfo uriInfo)
uriInfo - public javax.ws.rs.core.Response putInfoDiscobit(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.ws.rs.core.HttpHeaders headers,
byte[] data)
InfoDiscoBit at the specified locationuriInfo - the uri of the InforDiscoBit to be createddata - the content of the uploadpublic Object mkcol(@Context javax.ws.rs.core.UriInfo uriInfo)
uriInfo - public javax.ws.rs.core.Response propfind(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.ws.rs.core.HttpHeaders headers,
DOMSource body)
DOMSourceuriInfo - headers - HttpHeadersbody - DOMSource containing the requested properties, can be nullpublic javax.ws.rs.core.Response proppatch(@Context
javax.ws.rs.core.UriInfo uriInfo,
DOMSource body)
uriInfo - body - DOMSource containing properties which should be set
or deletedpublic javax.ws.rs.core.Response move(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.ws.rs.core.HttpHeaders headers)
uriInfo - headers - public javax.ws.rs.core.Response delete(@Context
javax.ws.rs.core.UriInfo uriInfo)
uriInfo - public javax.ws.rs.core.Response options(@Context
javax.ws.rs.core.UriInfo uriInfo)
uriInfo - protected void bindMetaDataGenerator(org.apache.clerezza.rdf.metadata.MetaDataGenerator generator)
protected void unbindMetaDataGenerator(org.apache.clerezza.rdf.metadata.MetaDataGenerator generator)
protected org.apache.clerezza.rdf.core.MGraph getMGraph()
getMGraph in class AbstractDiscobitsHandlerprotected Set<org.apache.clerezza.rdf.metadata.MetaDataGenerator> getMetaDataGenerators()
AbstractDiscobitsHandlerSet containing MetaDataGenerators to be used
to add meta data to data putted by the handler.getMetaDataGenerators in class AbstractDiscobitsHandlerCopyright © 2014 The Apache Software Foundation. All rights reserved.