Class 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 Detail

      • webContext

        @Inject
        protected WebContext webContext
    • Constructor Detail

      • HtmlNuxeoExceptionWriter

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