DocumentModelListJsonWriter
. To use it in JAX-RS, use
JsonCoreIODelegate
to forward JAX-RS marshalling to core io. To use it your code, please refer to
MarshallerRegistry
service or use MarshallerHelper
.@Deprecated @Provider public class JsonDocumentListWriter extends EntityListWriter<DocumentModel>
Constructor and Description |
---|
JsonDocumentListWriter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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 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.