public abstract class CompressExtension extends AbstractExtension
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
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 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 and Description |
---|---|
protected |
CompressExtension() |
Modifier and Type | Method and Description |
---|---|
protected ByteAccumulator |
decompress(byte[] input) |
protected void |
forwardIncoming(Frame frame,
ByteAccumulator accumulator) |
Deflater |
getDeflater() |
Inflater |
getInflater() |
boolean |
isRsv1User()
Indicates use of RSV1 flag for indicating deflation is in use.
|
protected void |
notifyCallbackFailure(WriteCallback callback,
Throwable failure) |
protected void |
notifyCallbackSuccess(WriteCallback callback) |
void |
outgoingFrame(Frame frame,
WriteCallback callback,
BatchMode batchMode)
A frame, and optional callback, intended for the network layer.
|
String |
toString() |
dump, dumpWithHeading, getBufferPool, getConfig, getConnection, getName, getNextIncoming, getNextOutgoing, getPolicy, incomingError, isRsv2User, isRsv3User, nextIncomingError, nextIncomingFrame, nextOutgoingFrame, setBufferPool, setConfig, setConnection, setNextIncomingFrames, setNextOutgoingFrames, setPolicy
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
incomingFrame
protected static final byte[] TAIL_BYTES
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
public Deflater getDeflater()
public Inflater getInflater()
public boolean isRsv1User()
isRsv1User
in interface Extension
isRsv1User
in class AbstractExtension
protected void forwardIncoming(Frame frame, ByteAccumulator accumulator)
protected ByteAccumulator decompress(byte[] input)
public void outgoingFrame(Frame frame, WriteCallback callback, BatchMode batchMode)
OutgoingFrames
frame
- the frame to eventually write to the network layer.callback
- the callback to notify when the frame is written.batchMode
- the batch mode requested by the sender.protected void notifyCallbackSuccess(WriteCallback callback)
protected void notifyCallbackFailure(WriteCallback callback, Throwable failure)
public String toString()
toString
in class AbstractExtension
Copyright © 1995-2015 Webtide. All Rights Reserved.