Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

@Provider
public class JsonOperationWriter
extends Object
implements MessageBodyWriter<OperationDocumentation>

Author:
Bogdan Stefanescu

Constructor Summary
JsonOperationWriter()
           
 
Method Summary
 long getSize(OperationDocumentation arg0, Class<?> arg1, Type arg2, Annotation[] arg3, MediaType arg4)
           
 boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, MediaType arg3)
           
 void writeTo(OperationDocumentation op, 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

JsonOperationWriter

public JsonOperationWriter()
Method Detail

getSize

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

isWriteable

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

writeTo

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.