Package org.nuxeo.ecm.webengine.app
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(NuxeoException e, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) 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)
-
Field Details
-
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 interfacejavax.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 interfacejavax.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 interfacejavax.ws.rs.ext.MessageBodyWriter<NuxeoException>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-