Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.automation.server.jaxrs.io
Class JsonExceptionWriter

java.lang.Object
  extended by org.nuxeo.ecm.automation.server.jaxrs.io.JsonExceptionWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<ExceptionHandler>

@Provider
public class JsonExceptionWriter
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<ExceptionHandler>

Author:
Bogdan Stefanescu

Constructor Summary
JsonExceptionWriter()
           
 
Method Summary
 long getSize(ExceptionHandler arg0, java.lang.Class<?> arg1, java.lang.reflect.Type arg2, java.lang.annotation.Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
           
 boolean isWriteable(java.lang.Class<?> arg0, java.lang.reflect.Type arg1, java.lang.annotation.Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
           
 void writeTo(ExceptionHandler ee, java.lang.Class<?> arg1, java.lang.reflect.Type arg2, java.lang.annotation.Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> arg5, java.io.OutputStream arg6)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonExceptionWriter

public JsonExceptionWriter()
Method Detail

getSize

public long getSize(ExceptionHandler arg0,
                    java.lang.Class<?> arg1,
                    java.lang.reflect.Type arg2,
                    java.lang.annotation.Annotation[] arg3,
                    javax.ws.rs.core.MediaType arg4)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<ExceptionHandler>

isWriteable

public boolean isWriteable(java.lang.Class<?> arg0,
                           java.lang.reflect.Type arg1,
                           java.lang.annotation.Annotation[] arg2,
                           javax.ws.rs.core.MediaType arg3)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<ExceptionHandler>

writeTo

public void writeTo(ExceptionHandler ee,
                    java.lang.Class<?> arg1,
                    java.lang.reflect.Type arg2,
                    java.lang.annotation.Annotation[] arg3,
                    javax.ws.rs.core.MediaType arg4,
                    javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> arg5,
                    java.io.OutputStream arg6)
             throws java.io.IOException,
                    javax.ws.rs.WebApplicationException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<ExceptionHandler>
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.