@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,
javax.ws.rs.core.MediaType arg3) |
static void |
writeDocuments(org.codehaus.jackson.JsonGenerator jg,
List<DocumentModel> docs,
String[] schemas,
javax.ws.rs.core.HttpHeaders headers,
javax.servlet.ServletRequest request) |
static void |
writeDocuments(org.codehaus.jackson.JsonGenerator jg,
List<DocumentModel> docs,
String[] schemas,
javax.servlet.ServletRequest request) |
void |
writeDocuments(OutputStream out,
List<DocumentModel> docs,
String[] schemas) |
void |
writeDocuments(OutputStream out,
List<DocumentModel> docs,
String[] schemas,
javax.ws.rs.core.HttpHeaders headers) |
void |
writeTo(List<DocumentModel> docs,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
getSize, writeEntity
public boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<List<DocumentModel>>
isWriteable
in class EntityListWriter<DocumentModel>
public void writeTo(List<DocumentModel> docs, 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<List<DocumentModel>>
writeTo
in class EntityWriter<List<DocumentModel>>
IOException
javax.ws.rs.WebApplicationException
public void writeDocuments(OutputStream out, List<DocumentModel> docs, String[] schemas) throws Exception
Exception
public void writeDocuments(OutputStream out, List<DocumentModel> docs, String[] schemas, javax.ws.rs.core.HttpHeaders headers) throws Exception
Exception
public static void writeDocuments(org.codehaus.jackson.JsonGenerator jg, List<DocumentModel> docs, String[] schemas, javax.servlet.ServletRequest request) throws Exception
Exception
public static void writeDocuments(org.codehaus.jackson.JsonGenerator jg, List<DocumentModel> docs, String[] schemas, javax.ws.rs.core.HttpHeaders headers, javax.servlet.ServletRequest request) throws Exception
Exception
Copyright © 2014 Nuxeo SA. All rights reserved.