public class FragmentExtension extends AbstractExtension
AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
FragmentExtension() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
The
Sec-WebSocket-Extensions name for this extension. |
void |
incomingError(Throwable e) |
void |
incomingFrame(Frame frame) |
void |
outgoingFrame(Frame frame,
WriteCallback callback)
A frame, and optional callback, intended for the network.
|
void |
setConfig(ExtensionConfig config) |
dump, dumpWithHeading, getBufferPool, getConfig, getConnection, getNextIncoming, getNextOutgoing, getPolicy, isRsv1User, isRsv2User, isRsv3User, nextIncomingError, nextIncomingFrame, nextOutgoingFrame, setBufferPool, setConnection, setNextIncomingFrames, setNextOutgoingFrames, setPolicy, toStringaddBean, 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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic String getName()
ExtensionSec-WebSocket-Extensions name for this extension.
Also known as the extension-token per Section 9.1. Negotiating Extensions.
getName in interface ExtensiongetName in class AbstractExtensionpublic void incomingError(Throwable e)
incomingError in interface IncomingFramesincomingError in class AbstractExtensionpublic void incomingFrame(Frame frame)
public 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 AbstractExtensionCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.