org.glassfish.grizzly.utils
Class ChunkingFilter

java.lang.Object
  extended by org.glassfish.grizzly.filterchain.BaseFilter
      extended by org.glassfish.grizzly.filterchain.AbstractCodecFilter<Buffer,Buffer>
          extended by 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

Nested Class Summary
static class ChunkingFilter.ChunkingDecoder
           
static class ChunkingFilter.ChunkingEncoder
           
static class ChunkingFilter.ChunkingTransformer
           
 
Constructor Summary
ChunkingFilter(int chunkSize)
          Construct a ChunkFilter, which will break incoming/outgoing data into chunks of the specified size.
 
Method Summary
 int getChunkSize()
           
 
Methods inherited from class org.glassfish.grizzly.filterchain.AbstractCodecFilter
getDecoder, getEncoder, handleRead, handleWrite
 
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
 
Methods inherited from interface org.glassfish.grizzly.filterchain.Filter
exceptionOccurred, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved
 

Constructor Detail

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 Detail

getChunkSize

public int getChunkSize()


Copyright © 2013 Oracle Corporation. All Rights Reserved.