Class JsonNuxeoExceptionWriter

java.lang.Object
org.nuxeo.ecm.webengine.app.JsonNuxeoExceptionWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<NuxeoException>

@Singleton @Provider @Produces("application/json") public class JsonNuxeoExceptionWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<NuxeoException>
Since:
9.3
  • Field Details

    • response

      @Context protected jakarta.servlet.http.HttpServletResponse response
  • Constructor Details

    • JsonNuxeoExceptionWriter

      public JsonNuxeoExceptionWriter()
  • Method Details

    • getSize

      public long getSize(NuxeoException arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<NuxeoException>
    • isWriteable

      public boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, jakarta.ws.rs.core.MediaType arg3)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<NuxeoException>
    • writeTo

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