org.apache.clerezza.jaxrs.rdf.providers
Class GraphNodeWriter
java.lang.Object
org.apache.clerezza.jaxrs.rdf.providers.GraphNodeWriter
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyWriter<org.apache.clerezza.rdf.utils.GraphNode>
@Provider
public class GraphNodeWriter
- extends Object
- implements javax.ws.rs.ext.MessageBodyWriter<org.apache.clerezza.rdf.utils.GraphNode>
By default this returns a serialization of the context of the GraphNode.
The expansion can be widened by using the query parameters xPropObj and
xProSubj. These parameters specify property uris (both parameters might be
repeated). For the specified properties their objects respectively subjects
are expanded as if they were bnodes.
- Author:
- reto
|
Method Summary |
long |
getSize(org.apache.clerezza.rdf.utils.GraphNode n,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
void |
setUriInfo(javax.ws.rs.core.UriInfo uriInfo)
|
void |
writeTo(org.apache.clerezza.rdf.utils.GraphNode node,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OBJ_EXP_PARAM
public static final String OBJ_EXP_PARAM
- See Also:
- Constant Field Values
SUBJ_EXP_PARAM
public static final String SUBJ_EXP_PARAM
- See Also:
- Constant Field Values
GraphNodeWriter
public GraphNodeWriter()
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.clerezza.rdf.utils.GraphNode>
getSize
public long getSize(org.apache.clerezza.rdf.utils.GraphNode n,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.clerezza.rdf.utils.GraphNode>
writeTo
public void writeTo(org.apache.clerezza.rdf.utils.GraphNode node,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.clerezza.rdf.utils.GraphNode>
- Throws:
IOException
javax.ws.rs.WebApplicationException
setUriInfo
@Context
public void setUriInfo(javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.