@Provider public class JsonDocumentListWriter extends EntityListWriter<DocumentModel>
| Modifier and Type | Field and Description |
|---|---|
protected javax.ws.rs.core.HttpHeaders |
headers |
protected javax.servlet.http.HttpServletRequest |
request |
| Constructor and Description |
|---|
JsonDocumentListWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getEntityType()
Returns the entity-type value of the list (ie: users, groups....)
|
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) |
protected void |
writeItem(org.codehaus.jackson.JsonGenerator jg,
DocumentModel item)
Writes the item in a JsonGenerator.
|
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) |
writeEntityBody, writeHeader, writePaginableHeadergetSize, writeEntity@Context protected javax.ws.rs.core.HttpHeaders headers
@Context protected javax.servlet.http.HttpServletRequest request
protected String getEntityType()
EntityListWritergetEntityType in class EntityListWriter<DocumentModel>protected void writeItem(org.codehaus.jackson.JsonGenerator jg,
DocumentModel item)
throws ClientException,
IOException
EntityListWriterwriteItem in class EntityListWriter<DocumentModel>ClientExceptionIOExceptionpublic 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>>IOExceptionjavax.ws.rs.WebApplicationExceptionpublic void writeDocuments(OutputStream out, List<DocumentModel> docs, String[] schemas) throws Exception
Exceptionpublic void writeDocuments(OutputStream out, List<DocumentModel> docs, String[] schemas, javax.ws.rs.core.HttpHeaders headers) throws Exception
Exceptionpublic static void writeDocuments(org.codehaus.jackson.JsonGenerator jg,
List<DocumentModel> docs,
String[] schemas,
javax.servlet.ServletRequest request)
throws Exception
Exceptionpublic 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
ExceptionCopyright © 2019 Nuxeo SA. All rights reserved.