@Provider
@Produces(value={"text/tab-separated-values","text/csv","text/sse","text/plain","application/sparql-results+json","application/sparql-results+xml","application/sparql-results+bio","text/turtle","text/rdf+n3","application/n-triples","application/rdf+xml"})
public class ResultSetStreamingOutput
extends java.lang.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,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(com.hp.hpl.jena.query.ResultSet resultSet,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream) |
public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.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,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.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,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.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.