org.trialox.jaxrs.blackbox
Class TestComponentInjectedWriter.HidingWriter

java.lang.Object
  extended by org.trialox.jaxrs.blackbox.TestComponentInjectedWriter.HidingWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<java.lang.String>
Enclosing class:
TestComponentInjectedWriter

@Provider
public static class TestComponentInjectedWriter.HidingWriter
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<java.lang.String>


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

TestComponentInjectedWriter.HidingWriter

public TestComponentInjectedWriter.HidingWriter()
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.String>

getSize

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

writeTo

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


Copyright © 2008. All Rights Reserved.