Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

@Provider
public class JsonAdapterWriter
extends Object
implements MessageBodyWriter<JsonAdapter>

Author:
bstefanescu

Constructor Summary
JsonAdapterWriter()
           
 
Method Summary
 long getSize(JsonAdapter t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 void writeTo(JsonAdapter arg0, Class<?> arg1, Type arg2, Annotation[] arg3, MediaType arg4, MultivaluedMap<String,Object> arg5, OutputStream arg6)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonAdapterWriter

public JsonAdapterWriter()
Method Detail

isWriteable

public boolean isWriteable(Class<?> type,
                           Type genericType,
                           Annotation[] annotations,
                           MediaType mediaType)
Specified by:
isWriteable in interface MessageBodyWriter<JsonAdapter>

getSize

public long getSize(JsonAdapter t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    MediaType mediaType)
Specified by:
getSize in interface MessageBodyWriter<JsonAdapter>

writeTo

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.