@ManagedObject(value="Abstract Extension") public abstract class AbstractExtension extends ContainerLifeCycle implements Extension
AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
AbstractExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
dump(Appendable out,
String indent) |
protected void |
dumpWithHeading(Appendable out,
String indent,
String heading,
Object bean) |
ByteBufferPool |
getBufferPool() |
ExtensionConfig |
getConfig()
The active configuration for this extension.
|
LogicalConnection |
getConnection() |
String |
getName()
The
Sec-WebSocket-Extensions name for this extension. |
IncomingFrames |
getNextIncoming() |
OutgoingFrames |
getNextOutgoing() |
WebSocketPolicy |
getPolicy() |
void |
incomingError(Throwable e) |
boolean |
isRsv1User()
Used to indicate that the extension makes use of the RSV1 bit of the base websocket framing.
|
boolean |
isRsv2User()
Used to indicate that the extension makes use of the RSV2 bit of the base websocket framing.
|
boolean |
isRsv3User()
Used to indicate that the extension makes use of the RSV3 bit of the base websocket framing.
|
protected void |
nextIncomingError(Throwable e) |
protected void |
nextIncomingFrame(Frame frame) |
protected void |
nextOutgoingFrame(Frame frame,
WriteCallback callback,
BatchMode batchMode) |
void |
setBufferPool(ByteBufferPool bufferPool) |
void |
setConfig(ExtensionConfig config) |
void |
setConnection(LogicalConnection connection) |
void |
setNextIncomingFrames(IncomingFrames nextIncoming)
Set the next
IncomingFrames to call in the chain. |
void |
setNextOutgoingFrames(OutgoingFrames nextOutgoing)
Set the next
OutgoingFrames to call in the chain. |
void |
setPolicy(WebSocketPolicy policy) |
String |
toString() |
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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitincomingFrameoutgoingFramepublic void dump(Appendable out, String indent) throws IOException
dump in interface Dumpabledump in class ContainerLifeCycleIOExceptionprotected void dumpWithHeading(Appendable out, String indent, String heading, Object bean) throws IOException
IOExceptionpublic ByteBufferPool getBufferPool()
public ExtensionConfig getConfig()
Extensionpublic LogicalConnection getConnection()
public String getName()
ExtensionSec-WebSocket-Extensions name for this extension.
Also known as the extension-token per Section 9.1. Negotiating Extensions.
@ManagedAttribute(name="Next Incoming Frame Handler", readonly=true) public IncomingFrames getNextIncoming()
@ManagedAttribute(name="Next Outgoing Frame Handler", readonly=true) public OutgoingFrames getNextOutgoing()
public WebSocketPolicy getPolicy()
public void incomingError(Throwable e)
incomingError in interface IncomingFramespublic boolean isRsv1User()
This is used to adjust validation during parsing, as well as a checkpoint against 2 or more extensions all simultaneously claiming ownership of RSV1.
isRsv1User in interface Extensionpublic boolean isRsv2User()
This is used to adjust validation during parsing, as well as a checkpoint against 2 or more extensions all simultaneously claiming ownership of RSV2.
isRsv2User in interface Extensionpublic boolean isRsv3User()
This is used to adjust validation during parsing, as well as a checkpoint against 2 or more extensions all simultaneously claiming ownership of RSV3.
isRsv3User in interface Extensionprotected void nextIncomingError(Throwable e)
protected void nextIncomingFrame(Frame frame)
protected void nextOutgoingFrame(Frame frame, WriteCallback callback, BatchMode batchMode)
public void setBufferPool(ByteBufferPool bufferPool)
public void setConfig(ExtensionConfig config)
public void setConnection(LogicalConnection connection)
public void setNextIncomingFrames(IncomingFrames nextIncoming)
ExtensionIncomingFrames to call in the chain.setNextIncomingFrames in interface ExtensionnextIncoming - the next incoming extensionpublic void setNextOutgoingFrames(OutgoingFrames nextOutgoing)
ExtensionOutgoingFrames to call in the chain.setNextOutgoingFrames in interface ExtensionnextOutgoing - the next outgoing extensionpublic void setPolicy(WebSocketPolicy policy)
Copyright © 1995-2015 Webtide. All Rights Reserved.