Package org.glassfish.jersey.server
Class ChunkedResponseWriter
java.lang.Object
org.glassfish.jersey.server.ChunkedResponseWriter
- All Implemented Interfaces:
MessageBodyWriter<ChunkedOutput<?>>
public final class ChunkedResponseWriter
extends Object
implements MessageBodyWriter<ChunkedOutput<?>>
Used for writing
ChunkedOutput
.- Author:
- Pavel Bucek
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
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)
-
Constructor Details
-
ChunkedResponseWriter
public ChunkedResponseWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) - Specified by:
isWriteable
in interfaceMessageBodyWriter<ChunkedOutput<?>>
-
getSize
public long getSize(ChunkedOutput<?> chunkedOutput, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) - Specified by:
getSize
in interfaceMessageBodyWriter<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 interfaceMessageBodyWriter<ChunkedOutput<?>>
- Throws:
IOException
WebApplicationException
-