@Provider
@Produces(value={"text/tab-separated-values","text/csv","application/sparql-results+json","application/sparql-results+xml","application/sparql-results+bio","text/turtle","application/n-triples","application/rdf+xml"})
public class ResultSetStreamingOutput
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.query.ResultSet>
| Constructor and Description |
|---|
ResultSetStreamingOutput() |
| Modifier and Type | Method and Description |
|---|---|
static com.hp.hpl.jena.sparql.resultset.ResultsFormat |
getResultsFormat(javax.ws.rs.core.MediaType mediaType)
Map the HTTP MediaType to a SPARQL ResultsFormat
|
long |
getSize(com.hp.hpl.jena.query.ResultSet resultSet,
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.ResultSet resultSet,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public ResultSetStreamingOutput()
public 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.ResultSet>public long getSize(com.hp.hpl.jena.query.ResultSet resultSet, 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.ResultSet>public void writeTo(com.hp.hpl.jena.query.ResultSet resultSet, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws javax.ws.rs.WebApplicationException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.query.ResultSet>javax.ws.rs.WebApplicationExceptionpublic static com.hp.hpl.jena.sparql.resultset.ResultsFormat getResultsFormat(javax.ws.rs.core.MediaType mediaType)
mediaType - ResultsFormat for the given MediaTypeCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.