Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

java.lang.Object
  extended by org.nuxeo.ecm.automation.server.jaxrs.io.writers.JsonTreeWriter
All Implemented Interfaces:
MessageBodyWriter<org.codehaus.jackson.JsonNode>

@Provider
public class JsonTreeWriter
extends Object
implements MessageBodyWriter<org.codehaus.jackson.JsonNode>

Author:
bstefanescu

Constructor Summary
JsonTreeWriter()
           
 
Method Summary
 long getSize(org.codehaus.jackson.JsonNode t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 void writeTo(org.codehaus.jackson.JsonNode t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonTreeWriter

public JsonTreeWriter()
Method Detail

isWriteable

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

getSize

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

writeTo

public void writeTo(org.codehaus.jackson.JsonNode t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    MediaType mediaType,
                    MultivaluedMap<String,Object> httpHeaders,
                    OutputStream entityStream)
             throws IOException,
                    WebApplicationException
Specified by:
writeTo in interface MessageBodyWriter<org.codehaus.jackson.JsonNode>
Throws:
IOException
WebApplicationException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.