public final class IdentityTransferEncoding extends Object implements TransferEncoding
Modifier and Type | Method and Description |
---|---|
String |
getId()
Returns an internal ID of this encoding handler.
|
static IdentityTransferEncoding |
getInstance()
Returns an instance of
IdentityTransferEncoding . |
InputStream |
open(HttpRequest request,
InputStream input)
Creates a new instance of
IdentityMessageBodyInputStream to read the message body of the HTTP request. |
OutputStream |
open(HttpResponse response,
OutputStream output)
Creates an
IdentityMessageBodyOutputStream to write the message body of the HTTP response. |
public String getId()
getId
in interface TransferEncoding
public static IdentityTransferEncoding getInstance()
IdentityTransferEncoding
.IdentityTransferEncoding
public InputStream open(HttpRequest request, InputStream input) throws IOException
IdentityMessageBodyInputStream
to read the message body of the HTTP request.open
in interface TransferEncoding
request
- the HTTP request object.input
- the input stream to read the message body of the HTTP request.IdentityMessageBodyOutputStream
.IOException
- if an I/O error occurs.IdentityMessageBodyInputStream
public OutputStream open(HttpResponse response, OutputStream output) throws IOException
IdentityMessageBodyOutputStream
to write the message body of the HTTP response.open
in interface TransferEncoding
response
- the HttpResponse
output
- the OutputStream
to write the message body of the HTTP responseIdentityMessageBodyOutputStream
IOException
- when I/O error occursIdentityMessageBodyOutputStream