|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.compression.zip.GZipFilter
public class GZipFilter
This class implements a Filter which
encodes/decodes data in the GZIP format.
| Constructor Summary | |
|---|---|
GZipFilter()
Construct GZipFilter using default buffer sizes. |
|
GZipFilter(int inBufferSize,
int outBufferSize)
Construct GZipFilter using specific buffer sizes. |
|
| Method Summary | |
|---|---|
NextAction |
handleClose(FilterChainContext ctx)
Method perform the clean up of GZIP encoding/decoding state on a closed Connection. |
NextAction |
handleRead(FilterChainContext ctx)
Method decodes GZIP encoded data stored in FilterChainContext.getMessage() and,
as the result, produces a Buffer with a plain data. |
NextAction |
handleWrite(FilterChainContext ctx)
Method compresses plain data stored in FilterChainContext.getMessage() and,
as the result, produces a Buffer with a GZIP compressed data. |
| Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter |
|---|
createContext, exceptionOccurred, getFilterChain, getIndex, handleAccept, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GZipFilter()
public GZipFilter(int inBufferSize,
int outBufferSize)
inBufferSize - input buffer sizeoutBufferSize - output buffer size| Method Detail |
|---|
public NextAction handleClose(FilterChainContext ctx)
throws java.io.IOException
Connection.
handleClose in interface FilterhandleClose in class BaseFilterctx - Context of FilterChainContext processing.
java.io.IOException
public NextAction handleRead(FilterChainContext ctx)
throws java.io.IOException
FilterChainContext.getMessage() and,
as the result, produces a Buffer with a plain data.
handleRead in interface FilterhandleRead in class BaseFilterctx - Context of FilterChainContext processing.
java.io.IOException
public NextAction handleWrite(FilterChainContext ctx)
throws java.io.IOException
FilterChainContext.getMessage() and,
as the result, produces a Buffer with a GZIP compressed data.
handleWrite in interface FilterhandleWrite in class BaseFilterctx - Context of FilterChainContext processing.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||