public abstract class AbstractMuxExtension extends AbstractExtension
Supporting draft-ietf-hybi-websocket-multiplexing-08 Specification.
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Constructor and Description |
---|
AbstractMuxExtension() |
Modifier and Type | Method and Description |
---|---|
abstract void |
configureMuxer(Muxer muxer) |
void |
incomingFrame(Frame frame) |
void |
outgoingFrame(Frame frame,
WriteCallback callback)
A frame, and optional callback, intended for the network.
|
void |
setConnection(LogicalConnection connection) |
dump, dumpWithHeading, getBufferPool, getConfig, getConnection, getName, getNextIncoming, getNextOutgoing, getPolicy, incomingError, isRsv1User, isRsv2User, isRsv3User, isTextDataDecoder, nextIncomingError, nextIncomingFrame, nextOutgoingFrame, setBufferPool, setConfig, setNextIncomingFrames, setNextOutgoingFrames, setPolicy, toString
addBean, addBean, addBean, addEventListener, 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
public abstract void configureMuxer(Muxer muxer)
public void incomingFrame(Frame frame)
public void outgoingFrame(Frame frame, WriteCallback callback)
OutgoingFrames
Note: 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 setConnection(LogicalConnection connection)
setConnection
in class AbstractExtension
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.