org.trialox.jaxrs.blackbox
Class TestGenericEntityResponse.IntegerWriter

java.lang.Object
  extended by org.trialox.jaxrs.blackbox.TestGenericEntityResponse.IntegerWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<java.lang.Integer>
Enclosing class:
TestGenericEntityResponse

@Provider
public static class TestGenericEntityResponse.IntegerWriter
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<java.lang.Integer>


Constructor Summary
TestGenericEntityResponse.IntegerWriter()
           
 
Method Summary
 long getSize(java.lang.Integer t)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
           
 void writeTo(java.lang.Integer 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

TestGenericEntityResponse.IntegerWriter

public TestGenericEntityResponse.IntegerWriter()
Method Detail

isWriteable

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

getSize

public long getSize(java.lang.Integer t)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Integer>

writeTo

public void writeTo(java.lang.Integer 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<java.lang.Integer>
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException


Copyright © 2008. All Rights Reserved.