java.lang.Object
org.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.filterchain.AbstractCodecFilter<Buffer,Buffer>
org.glassfish.grizzly.utils.ChunkingFilter
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionChunkingFilter(int chunkSize) Construct a ChunkFilter, which will break incoming/outgoing data into chunks of the specified size. -
Method Summary
Methods inherited from class org.glassfish.grizzly.filterchain.AbstractCodecFilter
getDecoder, getEncoder, handleRead, handleWriteMethods inherited from class org.glassfish.grizzly.filterchain.BaseFilter
createContext, exceptionOccurred, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glassfish.grizzly.filterchain.Filter
exceptionOccurred, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved
-
Constructor Details
-
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.
-
-
Method Details
-
getChunkSize
public int getChunkSize()
-