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 Modifier and Type Field Description protected WebContext
webContext
-
Constructor Summary
Constructors Constructor Description HtmlNuxeoExceptionWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
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 Detail
-
webContext
@Inject protected WebContext webContext
-
-
Method Detail
-
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
-
-