|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.clerezza.platform.content.AbstractDiscobitsHandler
org.apache.clerezza.platform.content.DiscobitsTypeHandler
@Services(value={@Service(value=java.lang.Object.class),@Service(value=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 DiscobitsTypeHandlerThis Class allows getting and putting content structured using the Discobits ontology. Is an implementation of DiscobitsHandler and additionally registers as TypeHanlder to allow HTTP GET and PUT.
| Field Summary | |
|---|---|
protected org.apache.clerezza.platform.graphprovider.content.ContentGraphProvider |
cgProvider
|
static String |
MAX_AGE
|
| Constructor Summary | |
|---|---|
DiscobitsTypeHandler()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.clerezza.platform.content.AbstractDiscobitsHandler |
|---|
getData, getMediaType, put, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.clerezza.platform.content.DiscobitsHandler |
|---|
getData, getMediaType, put, remove |
| Field Detail |
|---|
@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
| Constructor Detail |
|---|
public DiscobitsTypeHandler()
| Method Detail |
|---|
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 location
uriInfo - the uri of the InforDiscoBit to be createddata - the content of the upload
public 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)
DOMSource
uriInfo - headers - HttpHeadersbody - DOMSource containing the requested properties, can be null
public 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 deleted
public 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 AbstractDiscobitsHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||