org.apache.ws.commons.tcpmon.core.filter.http
Class ChunkedEncoding
java.lang.Object
org.apache.ws.commons.tcpmon.core.filter.http.ChunkedEncoding
- All Implemented Interfaces:
- TransferEncoding
public class ChunkedEncoding
- extends Object
- implements TransferEncoding
Implementation of the chunked transfer encoding.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChunkedEncoding
public ChunkedEncoding()
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.