Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.automation.server.jaxrs.io
Class JsonDocumentWriter

java.lang.Object
  extended by org.nuxeo.ecm.automation.server.jaxrs.io.JsonDocumentWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<DocumentModel>

@Provider
public class JsonDocumentWriter
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<DocumentModel>

Author:
Bogdan Stefanescu

Constructor Summary
JsonDocumentWriter()
           
 
Method Summary
static net.sf.json.JSONObject getJSON(DocumentModel doc, java.util.List<java.lang.String> schemas)
           
 long getSize(DocumentModel arg0, java.lang.Class<?> arg1, java.lang.reflect.Type arg2, java.lang.annotation.Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
           
 boolean isWriteable(java.lang.Class<?> arg0, java.lang.reflect.Type arg1, java.lang.annotation.Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
           
 void writeTo(DocumentModel doc, java.lang.Class<?> arg1, java.lang.reflect.Type arg2, java.lang.annotation.Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> arg5, java.io.OutputStream arg6)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonDocumentWriter

public JsonDocumentWriter()
Method Detail

getSize

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

isWriteable

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

writeTo

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

getJSON

public static net.sf.json.JSONObject getJSON(DocumentModel doc,
                                             java.util.List<java.lang.String> schemas)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.