org.apache.ws.commons.tcpmon.core.filter.http
Class IdentityEncoding

java.lang.Object
  extended by org.apache.ws.commons.tcpmon.core.filter.http.IdentityEncoding
All Implemented Interfaces:
TransferEncoding

public class IdentityEncoding
extends Object
implements TransferEncoding

Implementation of the identity transfer encoding.


Constructor Summary
IdentityEncoding()
           
 
Method Summary
 EntityProcessor createDecoder(Headers headers)
          Create a decoder for the transfer encoding.
 StreamFilter createEncoder(Headers headers)
          Create an encoder for the transfer encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityEncoding

public IdentityEncoding()
Method Detail

createDecoder

public EntityProcessor createDecoder(Headers headers)
Description copied from interface: TransferEncoding
Create a decoder for the transfer encoding.

Specified by:
createDecoder in interface TransferEncoding
Parameters:
headers - The HTTP headers of the request or response. The implementation may use this object to extract additional information.
Returns:
a stream filter able to decode the transfer encoding

createEncoder

public StreamFilter createEncoder(Headers headers)
Description copied from interface: TransferEncoding
Create an encoder for the transfer encoding.

Specified by:
createEncoder in interface TransferEncoding
Parameters:
headers - The HTTP headers for the request or response to encode. It is the responsibility of the implementation to write these headers to the stream. This gives the implementation the opportunity to modify some headers.
Returns:
a stream filter able to encode the transfer encoding


Copyright © The Apache Software Foundation. All Rights Reserved.