org.glassfish.grizzly.utils
Class ChunkingFilter
java.lang.Object
org.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.filterchain.AbstractCodecFilter<Buffer,Buffer>
org.glassfish.grizzly.utils.ChunkingFilter
- All Implemented Interfaces:
- Codec<Buffer,Buffer>, CodecFilter<Buffer,Buffer>, Filter
public class ChunkingFilter
- extends AbstractCodecFilter<Buffer,Buffer>
The Filter is responsible to break the incoming/outgoing data into chunks and
pass them down/up by the FilterChain.
This Filter could be useful for testing reasons to check if all Filters in
the FilterChain work properly with chunked data.
- Author:
- Alexey Stashok
|
Constructor Summary |
ChunkingFilter(int chunkSize)
Construct a ChunkFilter, which will break incoming/outgoing data
into chunks of the specified size. |
| Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter |
createContext, exceptionOccurred, getFilterChain, getIndex, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChunkingFilter
public ChunkingFilter(int chunkSize)
- Construct a ChunkFilter, which will break incoming/outgoing data
into chunks of the specified size.
- Parameters:
chunkSize - the chunk size.
getChunkSize
public int getChunkSize()
Copyright © 2012 Oracle Corporation. All Rights Reserved.