@Provider public class JsonDocumentListWriter extends EntityListWriter<DocumentModel>
Constructor and Description |
---|
JsonDocumentListWriter() |
Modifier and Type | Method and Description |
---|---|
boolean |
isWriteable(Class<?> arg0,
Type arg1,
Annotation[] arg2,
MediaType arg3) |
static void |
writeDocuments(org.codehaus.jackson.JsonGenerator jg,
List<DocumentModel> docs,
String[] schemas) |
void |
writeDocuments(OutputStream out,
List<DocumentModel> docs,
String[] schemas) |
void |
writeTo(List<DocumentModel> docs,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
getSize, writeEntity
public boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, MediaType arg3)
isWriteable
in interface MessageBodyWriter<List<DocumentModel>>
isWriteable
in class EntityListWriter<DocumentModel>
public void writeTo(List<DocumentModel> docs, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
writeTo
in interface MessageBodyWriter<List<DocumentModel>>
writeTo
in class EntityWriter<List<DocumentModel>>
IOException
WebApplicationException
public void writeDocuments(OutputStream out, List<DocumentModel> docs, String[] schemas) throws Exception
Exception
public static void writeDocuments(org.codehaus.jackson.JsonGenerator jg, List<DocumentModel> docs, String[] schemas) throws Exception
Exception
Copyright © 2013 Nuxeo SA. All Rights Reserved.