org.nuxeo.ecm.automation.server.jaxrs.io.writers
Class JsonExceptionWriter
java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.io.writers.JsonExceptionWriter
- All Implemented Interfaces:
- MessageBodyWriter<ExceptionHandler>
@Provider
public class JsonExceptionWriter
- extends Object
- implements MessageBodyWriter<ExceptionHandler>
- Author:
- Bogdan Stefanescu
Method Summary |
long |
getSize(ExceptionHandler arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4)
|
boolean |
isWriteable(Class<?> arg0,
Type arg1,
Annotation[] arg2,
MediaType arg3)
|
void |
writeTo(ExceptionHandler ee,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4,
MultivaluedMap<String,Object> arg5,
OutputStream out)
|
JsonExceptionWriter
public JsonExceptionWriter()
getSize
public long getSize(ExceptionHandler arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4)
- Specified by:
getSize
in interface MessageBodyWriter<ExceptionHandler>
isWriteable
public boolean isWriteable(Class<?> arg0,
Type arg1,
Annotation[] arg2,
MediaType arg3)
- Specified by:
isWriteable
in interface MessageBodyWriter<ExceptionHandler>
writeTo
public void writeTo(ExceptionHandler ee,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4,
MultivaluedMap<String,Object> arg5,
OutputStream out)
throws IOException,
WebApplicationException
- Specified by:
writeTo
in interface MessageBodyWriter<ExceptionHandler>
- Throws:
IOException
WebApplicationException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.