Class HtmlNuxeoExceptionWriter

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

@Provider public class HtmlNuxeoExceptionWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<NuxeoException>
Since:
2025.0
  • Field Details

    • webContext

      @Inject protected WebContext webContext
  • Constructor Details

    • HtmlNuxeoExceptionWriter

      public HtmlNuxeoExceptionWriter()
  • 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<NuxeoException>
    • getSize

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

      public void writeTo(NuxeoException e, 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<NuxeoException>
      Throws:
      IOException
      javax.ws.rs.WebApplicationException