Package org.nuxeo.ecm.webengine.app
Class HtmlNuxeoExceptionWriter
java.lang.Object
org.nuxeo.ecm.webengine.app.HtmlNuxeoExceptionWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<NuxeoException>
@Singleton
@Provider
@Produces("text/html;qs=0.1")
public class HtmlNuxeoExceptionWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<NuxeoException>
- Since:
- 2025.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) void
writeTo
(NuxeoException e, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
Field Details
-
TYPE_TEXT_HTML
- See Also:
-
webContext
-
-
Constructor Details
-
HtmlNuxeoExceptionWriter
public HtmlNuxeoExceptionWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejakarta.ws.rs.ext.MessageBodyWriter<NuxeoException>
-
writeTo
public void writeTo(NuxeoException e, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<NuxeoException>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-