@Service(value=java.lang.Object.class) @Property(name="javax.ws.rs", boolValue=true) @Provider public class ResultSetCsvMessageBodyWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<ResultSet>
ResultSet
. Resulting output is csv and
conforms to:
http://www.w3.org/TR/2013/REC-sparql11-results-csv-tsv-20130321/#csv
Also see: http://tools.ietf.org/html/rfc4180Constructor and Description |
---|
ResultSetCsvMessageBodyWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(ResultSet t,
Class<?> type,
Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(ResultSet resultSet,
Class<?> type,
Type genericType,
java.lang.annotation.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, java.lang.annotation.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, java.lang.annotation.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, java.lang.annotation.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 © 2014 The Apache Software Foundation. All Rights Reserved.