org.apache.ws.commons.tcpmon.core.filter.http
Interface TransferEncoding

All Known Implementing Classes:
ChunkedEncoding, IdentityEncoding

public interface TransferEncoding

Represents a particular transfer encoding as specified by the Transfer-Encoding header.


Method Summary
 EntityProcessor createDecoder(Headers headers)
          Create a decoder for the transfer encoding.
 StreamFilter createEncoder(Headers headers)
          Create an encoder for the transfer encoding.
 

Method Detail

createDecoder

EntityProcessor createDecoder(Headers headers)
Create a decoder for the transfer encoding.

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

StreamFilter createEncoder(Headers headers)
Create an encoder for the transfer encoding.

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.