org.glassfish.jersey.server
Class ChunkedResponseWriter

java.lang.Object
  extended by org.glassfish.jersey.server.ChunkedResponseWriter
All Implemented Interfaces:
MessageBodyWriter<ChunkedOutput<?>>

public class ChunkedResponseWriter
extends Object
implements MessageBodyWriter<ChunkedOutput<?>>

Used for writing ChunkedOutput.

Author:
Pavel Bucek (pavel.bucek at oracle.com)
See Also:
MessageBodyWriter

Constructor Summary
ChunkedResponseWriter()
           
 
Method Summary
 long getSize(ChunkedOutput<?> chunkedOutput, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 void writeTo(ChunkedOutput<?> chunkedOutput, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkedResponseWriter

public ChunkedResponseWriter()
Method Detail

isWriteable

public boolean isWriteable(Class<?> type,
                           Type genericType,
                           Annotation[] annotations,
                           MediaType mediaType)
Specified by:
isWriteable in interface MessageBodyWriter<ChunkedOutput<?>>

getSize

public long getSize(ChunkedOutput<?> chunkedOutput,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    MediaType mediaType)
Specified by:
getSize in interface MessageBodyWriter<ChunkedOutput<?>>

writeTo

public void writeTo(ChunkedOutput<?> chunkedOutput,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    MediaType mediaType,
                    MultivaluedMap<String,Object> httpHeaders,
                    OutputStream entityStream)
             throws IOException,
                    WebApplicationException
Specified by:
writeTo in interface MessageBodyWriter<ChunkedOutput<?>>
Throws:
IOException
WebApplicationException


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.