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 TransferEncodingpublic static ChunkedTransferCodingHandler getInstance()
ChunkedTransferCodingHandlerpublic 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 TransferEncodingrequest - the HttpRequestinput - the InputStreamChunkedMessageBodyInputStreamIOException - 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 TransferEncodingresponse - the HttpResponse.output - the OutputStream.ChunkedMessageBodyOutputStream.IOException - if an I/O error occurs.