@Provider
@Component
@Produces(value={"text/turtle","text/rdf+n3","text/n3","application/rdf+xml","application/n-triples","application/xml","text/plain","application/x-turtle","application/ld+json"})
public class RdfProvider
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.query.Dataset>
| Constructor and Description |
|---|
RdfProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(com.hp.hpl.jena.query.Dataset rdf,
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 |
writeTo(com.hp.hpl.jena.query.Dataset rdf,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public void writeTo(com.hp.hpl.jena.query.Dataset rdf,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.query.Dataset>IOExceptionpublic boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.query.Dataset>public long getSize(com.hp.hpl.jena.query.Dataset rdf,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.query.Dataset>Copyright © 2013–2014 DuraSpace, Inc.. All rights reserved.