public final class ChunkedTransferCodingHandler extends java.lang.Object implements TransferEncoding
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Returns the internal ID of the
ChunkedTransferCodingHandler . |
static ChunkedTransferCodingHandler |
getInstance()
Factory method to create an instance of ChunkedTransferCodingHandler.
|
java.io.InputStream |
open(HttpRequest request,
java.io.InputStream input)
Creates a
ChunkedMessageBodyInputStream to read the body of the HTTP request in "chunked" encoding from
the HttpRequest and the InputStream . |
java.io.OutputStream |
open(HttpResponse response,
java.io.OutputStream output)
Creates an
OutputStream to write the body of the HTTP response in "chunked" encoding using the
HttpResponse and the OutputStream . |
public static ChunkedTransferCodingHandler getInstance()
ChunkedTransferCodingHandler
public java.lang.String getId()
ChunkedTransferCodingHandler
.getId
in interface TransferEncoding
public java.io.InputStream open(HttpRequest request, java.io.InputStream input) throws java.io.IOException
ChunkedMessageBodyInputStream
to read the body of the HTTP request in "chunked" encoding from
the HttpRequest
and the InputStream
.open
in interface TransferEncoding
request
- the HttpRequest
input
- the InputStream
ChunkedMessageBodyInputStream
java.io.IOException
- when I/O error occurspublic java.io.OutputStream open(HttpResponse response, java.io.OutputStream output) throws java.io.IOException
OutputStream
to write the body of the HTTP response in "chunked" encoding using the
HttpResponse
and the OutputStream
.open
in interface TransferEncoding
response
- the HttpResponse
.output
- the OutputStream
.ChunkedMessageBodyOutputStream
.java.io.IOException
- if an I/O error occurs.