Extension, IncomingFrames, OutgoingFramesDeflateFrameExtension, PerMessageDeflateExtensionpublic abstract class CompressExtension extends AbstractExtension
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.concurrent.atomic.AtomicInteger |
decompressCount |
|
protected static int |
INFLATE_BUFFER_SIZE |
Inflater / Decompressed Buffer Size
|
protected static int |
INPUT_MAX_BUFFER_SIZE |
Deflater / Inflater: Maximum Input Buffer Size
|
protected static int |
RSV_USE_ALWAYS |
Always set RSV flag, on all frame types
|
protected static int |
RSV_USE_ONLY_FIRST |
Only set RSV flag on first frame in multi-frame messages.
|
protected static byte[] |
TAIL_BYTES |
|
protected static java.nio.ByteBuffer |
TAIL_BYTES_BUF |
|
protected static int |
TAIL_DROP_ALWAYS |
Always drop tail bytes 0000FFFF, from all frame types
|
protected static int |
TAIL_DROP_FIN_ONLY |
Only drop tail bytes 0000FFFF, from fin==true frames
|
protected static int |
TAIL_DROP_NEVER |
Never drop tail bytes 0000FFFF, from any frame type
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
CompressExtension() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
decompress(ByteAccumulator accumulator,
java.nio.ByteBuffer buf) |
|
protected void |
doStop() |
|
static boolean |
endsWithTail(java.nio.ByteBuffer buf) |
|
protected void |
forwardIncoming(Frame frame,
ByteAccumulator accumulator) |
|
java.util.zip.Deflater |
getDeflater() |
|
java.util.zip.Inflater |
getInflater() |
|
boolean |
isRsv1User() |
Indicates use of RSV1 flag for indicating deflation is in use.
|
protected ByteAccumulator |
newByteAccumulator() |
|
protected void |
notifyCallbackFailure(WriteCallback callback,
java.lang.Throwable failure) |
|
protected void |
notifyCallbackSuccess(WriteCallback callback) |
|
void |
outgoingFrame(Frame frame,
WriteCallback callback,
BatchMode batchMode) |
|
java.lang.String |
toString() |
dump, dump, dumpWithHeading, getBufferPool, getConfig, getConnection, getName, getNextIncoming, getNextOutgoing, getPolicy, incomingError, init, init, isRsv2User, isRsv3User, nextIncomingError, nextIncomingFrame, nextOutgoingFrame, setBufferPool, setConfig, setConnection, setNextIncomingFrames, setNextOutgoingFrames, setPolicyaddLifeCycleListener, doStart, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stopincomingFrameprotected static final byte[] TAIL_BYTES
protected static final java.nio.ByteBuffer TAIL_BYTES_BUF
protected static final int TAIL_DROP_NEVER
protected static final int TAIL_DROP_ALWAYS
protected static final int TAIL_DROP_FIN_ONLY
protected static final int RSV_USE_ALWAYS
protected static final int RSV_USE_ONLY_FIRST
Note: this automatically means no-continuation frames have the RSV bit set
protected static final int INFLATE_BUFFER_SIZE
protected static final int INPUT_MAX_BUFFER_SIZE
protected java.util.concurrent.atomic.AtomicInteger decompressCount
public java.util.zip.Deflater getDeflater()
public java.util.zip.Inflater getInflater()
public boolean isRsv1User()
isRsv1User in interface ExtensionisRsv1User in class AbstractExtensionprotected void forwardIncoming(Frame frame, ByteAccumulator accumulator)
protected ByteAccumulator newByteAccumulator()
protected void decompress(ByteAccumulator accumulator, java.nio.ByteBuffer buf) throws java.util.zip.DataFormatException
java.util.zip.DataFormatExceptionpublic void outgoingFrame(Frame frame, WriteCallback callback, BatchMode batchMode)
protected void notifyCallbackSuccess(WriteCallback callback)
protected void notifyCallbackFailure(WriteCallback callback, java.lang.Throwable failure)
public static boolean endsWithTail(java.nio.ByteBuffer buf)
protected void doStop()
throws java.lang.Exception
doStop in class org.eclipse.jetty.util.component.AbstractLifeCyclejava.lang.Exceptionpublic java.lang.String toString()
toString in class AbstractExtensionCopyright © 1995–2018 Webtide. All rights reserved.