Package org.nuxeo.ecm.webengine.app
Class JsonNuxeoExceptionWriter
java.lang.Object
org.nuxeo.ecm.webengine.app.JsonNuxeoExceptionWriter
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<NuxeoException>
@Provider
public class JsonNuxeoExceptionWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<NuxeoException>
- Since:
- 9.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(NuxeoException arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4) boolean
isWriteable
(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3) void
writeTo
(NuxeoException nuxeoException, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> arg5, OutputStream outputStream)
-
Constructor Details
-
JsonNuxeoExceptionWriter
public JsonNuxeoExceptionWriter()
-
-
Method Details
-
getSize
public long getSize(NuxeoException arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4) - Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<NuxeoException>
-
isWriteable
public boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3) - Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<NuxeoException>
-
writeTo
public void writeTo(NuxeoException nuxeoException, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> arg5, OutputStream outputStream) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<NuxeoException>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-