Class JsonAdapterWriter

java.lang.Object
org.nuxeo.ecm.automation.jaxrs.io.JsonAdapterWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<JsonAdapter>

@Provider public class JsonAdapterWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<JsonAdapter>
Author:
bstefanescu
  • Constructor Details

    • JsonAdapterWriter

      public JsonAdapterWriter()
  • Method Details

    • 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<JsonAdapter>
    • getSize

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

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