@Provider public class JsonRecordSetWriter extends Object implements MessageBodyWriter<RecordSet>
RecordSet
objectsConstructor and Description |
---|
JsonRecordSetWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(RecordSet t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
void |
writeTo(RecordSet records,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream out) |
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isWriteable
in interface MessageBodyWriter<RecordSet>
public long getSize(RecordSet t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
getSize
in interface MessageBodyWriter<RecordSet>
public void writeTo(RecordSet records, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream out) throws IOException, WebApplicationException
writeTo
in interface MessageBodyWriter<RecordSet>
IOException
WebApplicationException
Copyright © 2013 Nuxeo SA. All Rights Reserved.