Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.server.jaxrs.io.writers
Class JsonDocumentListWriter

java.lang.Object
  extended by org.nuxeo.ecm.automation.server.jaxrs.io.writers.JsonDocumentListWriter
All Implemented Interfaces:
MessageBodyWriter<DocumentModelList>

@Provider
public class JsonDocumentListWriter
extends Object
implements MessageBodyWriter<DocumentModelList>

Author:
Bogdan Stefanescu

Constructor Summary
JsonDocumentListWriter()
           
 
Method Summary
 long getSize(DocumentModelList arg0, Class<?> arg1, Type arg2, Annotation[] arg3, MediaType arg4)
           
 boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, MediaType arg3)
           
static void writeDocuments(org.codehaus.jackson.JsonGenerator jg, DocumentModelList docs, String[] schemas)
           
static void writeDocuments(OutputStream out, DocumentModelList docs, String[] schemas)
           
 void writeTo(DocumentModelList docs, Class<?> arg1, Type arg2, Annotation[] arg3, MediaType arg4, MultivaluedMap<String,Object> arg5, OutputStream out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonDocumentListWriter

public JsonDocumentListWriter()
Method Detail

getSize

public long getSize(DocumentModelList arg0,
                    Class<?> arg1,
                    Type arg2,
                    Annotation[] arg3,
                    MediaType arg4)
Specified by:
getSize in interface MessageBodyWriter<DocumentModelList>

isWriteable

public boolean isWriteable(Class<?> arg0,
                           Type arg1,
                           Annotation[] arg2,
                           MediaType arg3)
Specified by:
isWriteable in interface MessageBodyWriter<DocumentModelList>

writeTo

public void writeTo(DocumentModelList docs,
                    Class<?> arg1,
                    Type arg2,
                    Annotation[] arg3,
                    MediaType arg4,
                    MultivaluedMap<String,Object> arg5,
                    OutputStream out)
             throws IOException,
                    WebApplicationException
Specified by:
writeTo in interface MessageBodyWriter<DocumentModelList>
Throws:
IOException
WebApplicationException

writeDocuments

public static void writeDocuments(OutputStream out,
                                  DocumentModelList docs,
                                  String[] schemas)
                           throws Exception
Throws:
Exception

writeDocuments

public static void writeDocuments(org.codehaus.jackson.JsonGenerator jg,
                                  DocumentModelList docs,
                                  String[] schemas)
                           throws Exception
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.