DocumentModelListJsonWriter
which is registered by default and available to marshal
DirectoryEntry
from the Nuxeo Rest API thanks to the JAX-RS marshaller JsonCoreIODelegate
@Deprecated @Provider public class JsonDocumentListWriter extends EntityListWriter<DocumentModel>
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.core.HttpHeaders |
headers
Deprecated.
|
protected javax.servlet.http.HttpServletRequest |
request
Deprecated.
|
Constructor and Description |
---|
JsonDocumentListWriter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getEntityType()
Deprecated.
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)
Deprecated.
|
static void |
writeDocuments(org.codehaus.jackson.JsonGenerator jg,
List<DocumentModel> docs,
String[] schemas,
javax.ws.rs.core.HttpHeaders headers,
javax.servlet.ServletRequest request)
Deprecated.
|
static void |
writeDocuments(org.codehaus.jackson.JsonGenerator jg,
List<DocumentModel> docs,
String[] schemas,
javax.servlet.ServletRequest request)
Deprecated.
|
void |
writeDocuments(OutputStream out,
List<DocumentModel> docs,
String[] schemas)
Deprecated.
|
void |
writeDocuments(OutputStream out,
List<DocumentModel> docs,
String[] schemas,
javax.ws.rs.core.HttpHeaders headers)
Deprecated.
|
protected void |
writeItem(org.codehaus.jackson.JsonGenerator jg,
DocumentModel item)
Deprecated.
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)
Deprecated.
|
writeEntityBody, writeHeader, writePaginableHeader
getSize, writeEntity
@Context protected javax.ws.rs.core.HttpHeaders headers
@Context protected javax.servlet.http.HttpServletRequest request
public JsonDocumentListWriter()
protected String getEntityType()
EntityListWriter
getEntityType
in class EntityListWriter<DocumentModel>
protected void writeItem(org.codehaus.jackson.JsonGenerator jg, DocumentModel item) throws IOException
EntityListWriter
writeItem
in class EntityListWriter<DocumentModel>
IOException
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 IOException
IOException
public void writeDocuments(OutputStream out, List<DocumentModel> docs, String[] schemas, javax.ws.rs.core.HttpHeaders headers) throws IOException
IOException
public static void writeDocuments(org.codehaus.jackson.JsonGenerator jg, List<DocumentModel> docs, String[] schemas, javax.servlet.ServletRequest request) throws IOException
IOException
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 IOException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.