Class AbstractExtension
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.websocket.common.extensions.AbstractExtension
- All Implemented Interfaces:
LifeCycle,Extension,IncomingFrames,OutgoingFrames
- Direct Known Subclasses:
CompressExtension,FragmentExtension,FrameCaptureExtension,IdentityExtension
@ManagedObject("Abstract Extension")
public abstract class AbstractExtension
extends AbstractLifeCycle
implements Extension
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidinit(WebSocketPolicy policy, ByteBufferPool bufferPool) voidinit(WebSocketContainerScope container) Deprecated.booleanUsed to indicate that the extension makes use of the RSV1 bit of the base websocket framing.booleanUsed to indicate that the extension makes use of the RSV2 bit of the base websocket framing.booleanUsed to indicate that the extension makes use of the RSV3 bit of the base websocket framing.protected voidnextIncomingFrame(Frame frame) protected voidnextOutgoingFrame(Frame frame, WriteCallback callback, BatchMode batchMode) voidsetBufferPool(ByteBufferPool bufferPool) voidsetConfig(ExtensionConfig config) voidsetConnection(LogicalConnection connection) voidsetNextIncomingFrames(IncomingFrames nextIncoming) voidsetNextOutgoingFrames(OutgoingFrames nextOutgoing) voidsetPolicy(WebSocketPolicy policy) toString()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, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.websocket.api.extensions.IncomingFrames
incomingFrameMethods inherited from interface org.eclipse.jetty.websocket.api.extensions.OutgoingFrames
outgoingFrame
-
Constructor Details
-
AbstractExtension
public AbstractExtension()
-
-
Method Details
-
init
Deprecated. -
init
-
getBufferPool
-
getConfig
-
getConnection
-
getName
-
getNextIncoming
@ManagedAttribute(name="Next Incoming Frame Handler", readonly=true) public IncomingFrames getNextIncoming() -
getNextOutgoing
@ManagedAttribute(name="Next Outgoing Frame Handler", readonly=true) public OutgoingFrames getNextOutgoing() -
getPolicy
-
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 interfaceExtension- 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 interfaceExtension- 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 interfaceExtension- Returns:
- true if extension uses RSV3 for its own purposes.
-
nextIncomingFrame
-
nextOutgoingFrame
-
setBufferPool
-
setConfig
-
setConnection
-
setNextIncomingFrames
- Specified by:
setNextIncomingFramesin interfaceExtension
-
setNextOutgoingFrames
- Specified by:
setNextOutgoingFramesin interfaceExtension
-
setPolicy
-
toString
- Overrides:
toStringin classAbstractLifeCycle
-