@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)
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.query.ResultSet>
public static com.hp.hpl.jena.sparql.resultset.ResultsFormat getResultsFormat(javax.ws.rs.core.MediaType mediaType)
mediaType
- the media typeResultsFormat
for the given MediaType
Copyright © 2013–2015 DuraSpace, Inc.. All rights reserved.