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