Class AbstractExtension
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.websocket.common.extensions.AbstractExtension
-
- All Implemented Interfaces:
org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.LifeCycle,org.eclipse.jetty.websocket.api.extensions.Extension,org.eclipse.jetty.websocket.api.extensions.IncomingFrames,org.eclipse.jetty.websocket.api.extensions.OutgoingFrames
- Direct Known Subclasses:
CompressExtension,FragmentExtension,FrameCaptureExtension,IdentityExtension
@ManagedObject("Abstract Extension") public abstract class AbstractExtension extends org.eclipse.jetty.util.component.AbstractLifeCycle implements org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.websocket.api.extensions.Extension
-
-
Constructor Summary
Constructors Constructor Description AbstractExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Stringdump()voiddump(Appendable out, String indent)protected voiddumpWithHeading(Appendable out, String indent, String heading, Object bean)org.eclipse.jetty.io.ByteBufferPoolgetBufferPool()org.eclipse.jetty.websocket.api.extensions.ExtensionConfiggetConfig()LogicalConnectiongetConnection()StringgetName()org.eclipse.jetty.websocket.api.extensions.IncomingFramesgetNextIncoming()org.eclipse.jetty.websocket.api.extensions.OutgoingFramesgetNextOutgoing()org.eclipse.jetty.websocket.api.WebSocketPolicygetPolicy()voidincomingError(Throwable e)voidinit(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool)voidinit(WebSocketContainerScope container)Deprecated.booleanisRsv1User()Used to indicate that the extension makes use of the RSV1 bit of the base websocket framing.booleanisRsv2User()Used to indicate that the extension makes use of the RSV2 bit of the base websocket framing.booleanisRsv3User()Used to indicate that the extension makes use of the RSV3 bit of the base websocket framing.protected voidnextIncomingError(Throwable e)protected voidnextIncomingFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame)protected voidnextOutgoingFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame, org.eclipse.jetty.websocket.api.WriteCallback callback, org.eclipse.jetty.websocket.api.BatchMode batchMode)voidsetBufferPool(org.eclipse.jetty.io.ByteBufferPool bufferPool)voidsetConfig(org.eclipse.jetty.websocket.api.extensions.ExtensionConfig config)voidsetConnection(LogicalConnection connection)voidsetNextIncomingFrames(org.eclipse.jetty.websocket.api.extensions.IncomingFrames nextIncoming)voidsetNextOutgoingFrames(org.eclipse.jetty.websocket.api.extensions.OutgoingFrames nextOutgoing)voidsetPolicy(org.eclipse.jetty.websocket.api.WebSocketPolicy policy)StringtoString()-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, doStart, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
dump
public String dump()
- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable
-
dump
public void dump(Appendable out, String indent) throws IOException
- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable- Throws:
IOException
-
dumpWithHeading
protected void dumpWithHeading(Appendable out, String indent, String heading, Object bean) throws IOException
- Throws:
IOException
-
init
@Deprecated public void init(WebSocketContainerScope container)
Deprecated.
-
init
public void init(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool)
-
getBufferPool
public org.eclipse.jetty.io.ByteBufferPool getBufferPool()
-
getConfig
public org.eclipse.jetty.websocket.api.extensions.ExtensionConfig getConfig()
- Specified by:
getConfigin interfaceorg.eclipse.jetty.websocket.api.extensions.Extension
-
getConnection
public LogicalConnection getConnection()
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.eclipse.jetty.websocket.api.extensions.Extension
-
getNextIncoming
@ManagedAttribute(name="Next Incoming Frame Handler", readonly=true) public org.eclipse.jetty.websocket.api.extensions.IncomingFrames getNextIncoming()
-
getNextOutgoing
@ManagedAttribute(name="Next Outgoing Frame Handler", readonly=true) public org.eclipse.jetty.websocket.api.extensions.OutgoingFrames getNextOutgoing()
-
getPolicy
public org.eclipse.jetty.websocket.api.WebSocketPolicy getPolicy()
-
incomingError
public void incomingError(Throwable e)
- Specified by:
incomingErrorin interfaceorg.eclipse.jetty.websocket.api.extensions.IncomingFrames
-
isRsv1User
public boolean isRsv1User()
Used to indicate that the extension makes use of the RSV1 bit of the base websocket framing.This is used to adjust validation during parsing, as well as a checkpoint against 2 or more extensions all simultaneously claiming ownership of RSV1.
- Specified by:
isRsv1Userin interfaceorg.eclipse.jetty.websocket.api.extensions.Extension- Returns:
- true if extension uses RSV1 for its own purposes.
-
isRsv2User
public boolean isRsv2User()
Used to indicate that the extension makes use of the RSV2 bit of the base websocket framing.This is used to adjust validation during parsing, as well as a checkpoint against 2 or more extensions all simultaneously claiming ownership of RSV2.
- Specified by:
isRsv2Userin interfaceorg.eclipse.jetty.websocket.api.extensions.Extension- Returns:
- true if extension uses RSV2 for its own purposes.
-
isRsv3User
public boolean isRsv3User()
Used to indicate that the extension makes use of the RSV3 bit of the base websocket framing.This is used to adjust validation during parsing, as well as a checkpoint against 2 or more extensions all simultaneously claiming ownership of RSV3.
- Specified by:
isRsv3Userin interfaceorg.eclipse.jetty.websocket.api.extensions.Extension- Returns:
- true if extension uses RSV3 for its own purposes.
-
nextIncomingError
protected void nextIncomingError(Throwable e)
-
nextIncomingFrame
protected void nextIncomingFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame)
-
nextOutgoingFrame
protected void nextOutgoingFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame, org.eclipse.jetty.websocket.api.WriteCallback callback, org.eclipse.jetty.websocket.api.BatchMode batchMode)
-
setBufferPool
public void setBufferPool(org.eclipse.jetty.io.ByteBufferPool bufferPool)
-
setConfig
public void setConfig(org.eclipse.jetty.websocket.api.extensions.ExtensionConfig config)
-
setConnection
public void setConnection(LogicalConnection connection)
-
setNextIncomingFrames
public void setNextIncomingFrames(org.eclipse.jetty.websocket.api.extensions.IncomingFrames nextIncoming)
- Specified by:
setNextIncomingFramesin interfaceorg.eclipse.jetty.websocket.api.extensions.Extension
-
setNextOutgoingFrames
public void setNextOutgoingFrames(org.eclipse.jetty.websocket.api.extensions.OutgoingFrames nextOutgoing)
- Specified by:
setNextOutgoingFramesin interfaceorg.eclipse.jetty.websocket.api.extensions.Extension
-
setPolicy
public void setPolicy(org.eclipse.jetty.websocket.api.WebSocketPolicy policy)
-
toString
public String toString()
- Overrides:
toStringin classorg.eclipse.jetty.util.component.AbstractLifeCycle
-
-