@ManagedObject(value="Extension Stack") public class ExtensionStack extends ContainerLifeCycle implements IncomingFrames, OutgoingFrames
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Constructor and Description |
---|
ExtensionStack(ExtensionFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
configure(Generator generator) |
void |
configure(Parser parser) |
protected void |
doStart()
Starts the managed lifecycle beans in the order they were added.
|
void |
dump(Appendable out,
String indent) |
List<Extension> |
getExtensions() |
List<String> |
getNegotiatedExtensions()
Get the list of negotiated extensions, each entry being a full "name; params" extension configuration
|
IncomingFrames |
getNextIncoming() |
OutgoingFrames |
getNextOutgoing() |
void |
incomingError(WebSocketException e) |
void |
incomingFrame(Frame frame) |
void |
negotiate(List<ExtensionConfig> configs)
Perform the extension negotiation.
|
Future<javax.net.websocket.SendResult> |
outgoingFrame(Frame frame) |
void |
setNextIncoming(IncomingFrames nextIncoming) |
void |
setNextOutgoing(OutgoingFrames nextOutgoing) |
String |
toString() |
addBean, addBean, addBean, contains, destroy, doStop, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, setBeans, setStopTimeout, start, unmanage, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public ExtensionStack(ExtensionFactory factory)
public void configure(Generator generator)
public void configure(Parser parser)
protected void doStart() throws Exception
ContainerLifeCycle
doStart
in class ContainerLifeCycle
Exception
public void dump(Appendable out, String indent) throws IOException
dump
in interface Dumpable
dump
in class ContainerLifeCycle
IOException
@ManagedAttribute(name="Extension List", readonly=true) public List<Extension> getExtensions()
public List<String> getNegotiatedExtensions()
@ManagedAttribute(name="Next Incoming Frames Handler", readonly=true) public IncomingFrames getNextIncoming()
@ManagedAttribute(name="Next Outgoing Frames Handler", readonly=true) public OutgoingFrames getNextOutgoing()
public void incomingError(WebSocketException e)
incomingError
in interface IncomingFrames
public void incomingFrame(Frame frame)
incomingFrame
in interface IncomingFrames
public void negotiate(List<ExtensionConfig> configs)
For the list of negotiated extensions, use getNegotiatedExtensions()
configs
- the configurations being requestedpublic Future<javax.net.websocket.SendResult> outgoingFrame(Frame frame) throws IOException
outgoingFrame
in interface OutgoingFrames
IOException
public void setNextIncoming(IncomingFrames nextIncoming)
public void setNextOutgoing(OutgoingFrames nextOutgoing)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.