org.glassfish.jersey.server
Class ChunkedResponseWriter

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

public class ChunkedResponseWriter
extends java.lang.Object
implements javax.ws.rs.ext.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, 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(ChunkedOutput<?> chunkedOutput, 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

ChunkedResponseWriter

public ChunkedResponseWriter()
Method Detail

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<ChunkedOutput<?>>

getSize

public long getSize(ChunkedOutput<?> chunkedOutput,
                    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<ChunkedOutput<?>>

writeTo

public void writeTo(ChunkedOutput<?> chunkedOutput,
                    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<ChunkedOutput<?>>
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.