Class ExtensionStack
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.websocket.common.extensions.ExtensionStack
-
- All Implemented Interfaces:
Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
,IncomingFrames
,OutgoingFrames
@ManagedObject("Extension Stack") @Deprecated(since="2021-05-27") public class ExtensionStack extends ContainerLifeCycle implements IncomingFrames, OutgoingFrames
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Represents the stack of Extensions.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description ExtensionStack(ExtensionFactory factory)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
configure(Generator generator)
Deprecated.void
configure(Parser parser)
Deprecated.java.lang.String
dumpSelf()
Deprecated.The description of this/self found in the dump.java.util.List<Extension>
getExtensions()
Deprecated.java.util.List<ExtensionConfig>
getNegotiatedExtensions()
Deprecated.Get the list of negotiated extensions, each entry being a full "name; params" extension configurationIncomingFrames
getNextIncoming()
Deprecated.OutgoingFrames
getNextOutgoing()
Deprecated.boolean
hasNegotiatedExtensions()
Deprecated.void
incomingFrame(Frame frame)
Deprecated.Process the incoming frame.void
negotiate(java.util.List<ExtensionConfig> configs)
Deprecated.Perform the extension negotiation.void
outgoingFrame(Frame frame, WriteCallback callback, BatchMode batchMode)
Deprecated.A frame, and optional callback, intended for the network layer.void
setNextIncoming(IncomingFrames nextIncoming)
Deprecated.void
setNextOutgoing(OutgoingFrames nextOutgoing)
Deprecated.void
setPolicy(WebSocketPolicy policy)
Deprecated.java.lang.String
toString()
Deprecated.-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
-
-
-
Constructor Detail
-
ExtensionStack
public ExtensionStack(ExtensionFactory factory)
Deprecated.
-
-
Method Detail
-
configure
public void configure(Generator generator)
Deprecated.
-
configure
public void configure(Parser parser)
Deprecated.
-
dumpSelf
public java.lang.String dumpSelf()
Deprecated.Description copied from interface:Dumpable
The description of this/self found in the dump. Allows for alternative representation of Object other then .toString() where the long form output of toString() is represented in a cleaner way within the dump infrastructure.
-
getExtensions
@ManagedAttribute(name="Extension List", readonly=true) public java.util.List<Extension> getExtensions()
Deprecated.
-
getNegotiatedExtensions
public java.util.List<ExtensionConfig> getNegotiatedExtensions()
Deprecated.Get the list of negotiated extensions, each entry being a full "name; params" extension configuration- Returns:
- list of negotiated extensions
-
getNextIncoming
@ManagedAttribute(name="Next Incoming Frames Handler", readonly=true) public IncomingFrames getNextIncoming()
Deprecated.
-
getNextOutgoing
@ManagedAttribute(name="Next Outgoing Frames Handler", readonly=true) public OutgoingFrames getNextOutgoing()
Deprecated.
-
hasNegotiatedExtensions
public boolean hasNegotiatedExtensions()
Deprecated.
-
incomingFrame
public void incomingFrame(Frame frame)
Deprecated.Description copied from interface:IncomingFrames
Process the incoming frame.Note: if you need to hang onto any information from the frame, be sure to copy it, as the information contained in the Frame will be released and/or reused by the implementation.
- Specified by:
incomingFrame
in interfaceIncomingFrames
- Parameters:
frame
- the frame to process
-
negotiate
public void negotiate(java.util.List<ExtensionConfig> configs)
Deprecated.Perform the extension negotiation.For the list of negotiated extensions, use
getNegotiatedExtensions()
- Parameters:
configs
- the configurations being requested
-
outgoingFrame
public void outgoingFrame(Frame frame, WriteCallback callback, BatchMode batchMode)
Deprecated.Description copied from interface:OutgoingFrames
A frame, and optional callback, intended for the network layer.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.
- Specified by:
outgoingFrame
in interfaceOutgoingFrames
- Parameters:
frame
- the frame to eventually write to the network layer.callback
- the callback to notify when the frame is written.batchMode
- the batch mode requested by the sender.
-
setNextIncoming
public void setNextIncoming(IncomingFrames nextIncoming)
Deprecated.
-
setNextOutgoing
public void setNextOutgoing(OutgoingFrames nextOutgoing)
Deprecated.
-
setPolicy
public void setPolicy(WebSocketPolicy policy)
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classAbstractLifeCycle
-
-