@Service(value=java.lang.Object.class) @Property(name="javax.ws.rs", boolValue=true) public class Editor extends FileServer
Constructor and Description |
---|
Editor() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context)
On activation the
FileServer is prepared |
GraphNode |
getDiscobit(UriRef uri,
UriRef graphUri) |
org.wymiwyg.commons.util.dirbrowser.PathNode |
getStaticFile(javax.ws.rs.core.UriInfo uriInfo) |
void |
postDiscobit(UriRef graphUri,
String assertedString,
String revokedString,
String rdfFormat)
replaces the subgraph serialized with RDF/XML in
revokedString
with the one from assertedString . |
void |
setProviders(javax.ws.rs.ext.Providers providers)
The providers are injected by the Jax-rs implementation and used to
locate readers for the RDF content of the body
|
configure, configure, configure, configure, getRootNode, reset
getNode
protected void activate(org.osgi.service.component.ComponentContext context)
FileServer
is preparedcontext
- @Context public void setProviders(javax.ws.rs.ext.Providers providers)
providers
- public void postDiscobit(UriRef graphUri, String assertedString, String revokedString, String rdfFormat)
revokedString
with the one from assertedString
.graphUri
- the graph within which the replacement has to take place or null
for the content graphassertedString
- the asserted Graph as RDF/XMLrevokedString
- the revoked Graph as RDF/XMLpublic org.wymiwyg.commons.util.dirbrowser.PathNode getStaticFile(@Context javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.