Class RdfStreamProvider
- java.lang.Object
-
- org.fcrepo.http.commons.responses.RdfStreamProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<RdfNamespacedStream>
@Provider @Produces({"text/turtle","text/rdf+n3","text/n3","application/rdf+xml","application/n-triples","text/plain","application/ld+json"}) public class RdfStreamProvider extends Object implements javax.ws.rs.ext.MessageBodyWriter<RdfNamespacedStream>
Provides serialization for streaming RDF results.- Since:
- Nov 19, 2013
- Author:
- ajs6f
-
-
Constructor Summary
Constructors Constructor Description RdfStreamProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(RdfNamespacedStream t, 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(RdfNamespacedStream nsStream, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Constructor Detail
-
RdfStreamProvider
public RdfStreamProvider()
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<RdfNamespacedStream>
-
getSize
public long getSize(RdfNamespacedStream t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<RdfNamespacedStream>
-
writeTo
public void writeTo(RdfNamespacedStream nsStream, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<RdfNamespacedStream>
-
-