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")
public class ExtensionStack
extends ContainerLifeCycle
implements IncomingFrames, OutgoingFrames
Represents the stack of Extensions.
-
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.Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected voiddoStart()dumpSelf()Get the list of negotiated extensions, each entry being a full "name; params" extension configurationbooleanvoidincomingFrame(Frame frame) voidnegotiate(List<ExtensionConfig> configs) Perform the extension negotiation.voidoutgoingFrame(Frame frame, WriteCallback callback, BatchMode batchMode) voidsetNextIncoming(IncomingFrames nextIncoming) voidsetNextOutgoing(OutgoingFrames nextOutgoing) voidsetPolicy(WebSocketPolicy policy) toString()Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
ExtensionStack
-
-
Method Details
-
configure
-
configure
-
doStart
- Overrides:
doStartin classContainerLifeCycle- Throws:
Exception
-
dumpSelf
-
getExtensions
-
getNegotiatedExtensions
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() -
getNextOutgoing
@ManagedAttribute(name="Next Outgoing Frames Handler", readonly=true) public OutgoingFrames getNextOutgoing() -
hasNegotiatedExtensions
public boolean hasNegotiatedExtensions() -
incomingFrame
- Specified by:
incomingFramein interfaceIncomingFrames
-
negotiate
Perform the extension negotiation.For the list of negotiated extensions, use
getNegotiatedExtensions()- Parameters:
configs- the configurations being requested
-
outgoingFrame
- Specified by:
outgoingFramein interfaceOutgoingFrames
-
setNextIncoming
-
setNextOutgoing
-
setPolicy
-
toString
- Overrides:
toStringin classAbstractLifeCycle
-