Class JsonRecordSetWriter
- java.lang.Object
-
- org.nuxeo.ecm.automation.jaxrs.io.JsonRecordSetWriter
-
-
Constructor Summary
Constructors Constructor Description JsonRecordSetWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(RecordSet 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)
protected void
writeRecords(OutputStream out, RecordSet records)
void
writeTo(RecordSet records, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream out)
-
-
-
Field Detail
-
log
protected static Log log
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<RecordSet>
-
getSize
public long getSize(RecordSet t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<RecordSet>
-
writeTo
public void writeTo(RecordSet records, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream out) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<RecordSet>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
writeRecords
protected void writeRecords(OutputStream out, RecordSet records) throws IOException
- Throws:
IOException
-
-