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 TypeMethodDescriptionlonggetSize(NuxeoException e, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) voidwriteTo(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:
isWriteablein 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:
getSizein 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:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<NuxeoException>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-