@Produces(value={"application/json","application/sparql-results+json"}) @Provider public class ResultSetJsonMessageBodyWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<ResultSet>
ResultSet
.
Resulting output conforms to:
http://www.w3.org/TR/2007/NOTE-rdf-sparql-json-res-20070618/Constructor and Description |
---|
ResultSetJsonMessageBodyWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(ResultSet 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(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 boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<ResultSet>
public long getSize(ResultSet t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<ResultSet>
public void writeTo(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 IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<ResultSet>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.