Class JsonAdapterWriter

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

@Singleton @Provider @Produces("application/json") public class JsonAdapterWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<JsonAdapter>
Author:
bstefanescu
  • Constructor Details

    • JsonAdapterWriter

      public JsonAdapterWriter()
  • Method Details

    • isWriteable

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

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

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