public class IdentityTransferCodingHandler extends java.lang.Object implements IHTTPTransferCodingHandler
Identity transfer coding handler.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Returns an internal ID of this encoding handler.
|
static IdentityTransferCodingHandler |
getInstance()
Returns an instance of
IdentityTransferCodingHandler . |
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 IdentityTransferCodingHandler getInstance()
Returns an instance of IdentityTransferCodingHandler
.
IdentityTransferCodingHandler
public java.lang.String getId()
Returns an internal ID of this encoding handler.
getId
in interface IHTTPTransferCodingHandler
public java.io.InputStream open(HTTPRequest request, java.io.InputStream input) throws java.io.IOException
Creates a new instance of IdentityMessageBodyInputStream
to read the message body of the HTTP request.
open
in interface IHTTPTransferCodingHandler
request
- the HTTP request objectinput
- the input stream to read the message body of the HTTP requestIdentityMessageBodyOutputStream
java.io.IOException
- if an I/O error occursIdentityMessageBodyInputStream
public java.io.OutputStream open(HTTPResponse response, java.io.OutputStream output) throws java.io.IOException
Creates an IdentityMessageBodyOutputStream
to write the message body of the HTTP response.
open
in interface IHTTPTransferCodingHandler
response
- the HTTPResponse
output
- the OutputStream
to write the message body of the HTTP responseIdentityMessageBodyOutputStream
java.io.IOException
- when I/O error occursIdentityMessageBodyOutputStream