com.atlassian.plugins.rest.common.error.jersey
Class UncaughtExceptionEntityWriter

java.lang.Object
  extended by com.atlassian.plugins.rest.common.error.jersey.UncaughtExceptionEntityWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<UncaughtExceptionEntity>

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

Writes UncaughtExceptionEntitys out as plain text.


Constructor Summary
UncaughtExceptionEntityWriter()
           
 
Method Summary
 long getSize(UncaughtExceptionEntity t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 void writeTo(UncaughtExceptionEntity t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UncaughtExceptionEntityWriter

public UncaughtExceptionEntityWriter()
Method Detail

getSize

public long getSize(UncaughtExceptionEntity t,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<UncaughtExceptionEntity>

isWriteable

public boolean isWriteable(java.lang.Class<?> type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<UncaughtExceptionEntity>

writeTo

public void writeTo(UncaughtExceptionEntity t,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
                    java.io.OutputStream entityStream)
             throws java.io.IOException,
                    javax.ws.rs.WebApplicationException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<UncaughtExceptionEntity>
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException


Copyright © 2014 Atlassian. All Rights Reserved.