Nuxeo Enterprise Platform 5.4

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

java.lang.Object
  extended by org.nuxeo.ecm.automation.server.jaxrs.io.writers.JsonObjectWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<net.sf.json.JSONObject>

public class JsonObjectWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<net.sf.json.JSONObject>

Author:
matic

Constructor Summary
JsonObjectWriter()
           
 
Method Summary
 long getSize(net.sf.json.JSONObject t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 void writeTo(net.sf.json.JSONObject t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonObjectWriter

public JsonObjectWriter()
Method Detail

isWriteable

public boolean isWriteable(Class<?> type,
                           Type genericType,
                           Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<net.sf.json.JSONObject>

getSize

public long getSize(net.sf.json.JSONObject t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<net.sf.json.JSONObject>

writeTo

public void writeTo(net.sf.json.JSONObject t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
                    OutputStream entityStream)
             throws IOException,
                    javax.ws.rs.WebApplicationException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<net.sf.json.JSONObject>
Throws:
IOException
javax.ws.rs.WebApplicationException

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.