public class FrameCompressionExtension extends AbstractExtension
AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
FrameCompressionExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
incomingFrame(Frame frame) |
boolean |
isRsv1User()
Indicates use of RSV1 flag for indicating deflation is in use.
|
boolean |
isTextDataDecoder()
Indicate that this extensions is now responsible for TEXT Data Frame compliance to the WebSocket spec.
|
void |
outgoingFrame(Frame frame,
WriteCallback callback)
A frame, and optional callback, intended for the network.
|
void |
setConfig(ExtensionConfig config) |
String |
toString() |
dump, dumpWithHeading, getBufferPool, getConfig, getConnection, getName, getNextIncoming, getNextOutgoing, getPolicy, incomingError, isRsv2User, isRsv3User, nextIncomingError, nextIncomingFrame, nextOutgoingFrame, setBufferPool, setConnection, setNextIncomingFrames, setNextOutgoingFrames, setPolicyaddBean, addBean, addBean, contains, destroy, doStart, doStop, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, setBeans, setStopTimeout, start, unmanage, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic void incomingFrame(Frame frame)
public boolean isRsv1User()
Also known as the "COMP" framing header bit
isRsv1User in interface ExtensionisRsv1User in class AbstractExtensionpublic boolean isTextDataDecoder()
isTextDataDecoder in interface ExtensionisTextDataDecoder in class AbstractExtensionpublic void outgoingFrame(Frame frame, WriteCallback callback)
OutgoingFramesNote: the frame can undergo many transformations in the various layers and extensions present in the implementation.
If you are implementing a mutation, you are obliged to handle the incoming WriteCallback appropriately.
frame - the frame to eventually write to the network.callback - the optional callback to use for success/failure of the network write operation. Can be null.public void setConfig(ExtensionConfig config)
setConfig in class AbstractExtensionpublic String toString()
toString in class AbstractExtensionCopyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.