Nuxeo Enterprise Platform 5.4

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:
javax.ws.rs.ext.MessageBodyWriter<DocumentModelList>

@Provider
public class JsonDocumentListWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<DocumentModelList>

Author:
Bogdan Stefanescu

Field Summary
static String DOCUMENT_PROPERTIES_HEADER
           
 
Constructor Summary
JsonDocumentListWriter()
           
 
Method Summary
 long getSize(DocumentModelList arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
           
 boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
           
 void writeTo(DocumentModelList docs, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<String,Object> arg5, OutputStream arg6)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCUMENT_PROPERTIES_HEADER

public static final String DOCUMENT_PROPERTIES_HEADER
See Also:
Constant Field Values
Constructor Detail

JsonDocumentListWriter

public JsonDocumentListWriter()
Method Detail

getSize

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

isWriteable

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

writeTo

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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.