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