Class JettyServerFrameHandlerFactory
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandlerFactory
org.eclipse.jetty.websocket.server.internal.JettyServerFrameHandlerFactory
- All Implemented Interfaces:
Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
,FrameHandlerFactory
public class JettyServerFrameHandlerFactory
extends JettyWebSocketFrameHandlerFactory
implements FrameHandlerFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJettyServerFrameHandlerFactory
(JettyWebSocketServerContainer container, WebSocketComponents components) -
Method Summary
Modifier and TypeMethodDescriptiongetFactory
(javax.servlet.ServletContext servletContext) newFrameHandler
(Object websocketPojo, ServerUpgradeRequest upgradeRequest, ServerUpgradeResponse upgradeResponse) Create a FrameHandler from the provided websocketPojo.Methods inherited from class org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandlerFactory
createMessageSink, createMetadata, dump, getApplicationMethodHandleLookup, getMetadata, getServerMethodHandleLookup, getWebSocketComponents, newJettyFrameHandler
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListeners
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
JettyServerFrameHandlerFactory
public JettyServerFrameHandlerFactory(JettyWebSocketServerContainer container, WebSocketComponents components)
-
-
Method Details
-
getFactory
public static JettyServerFrameHandlerFactory getFactory(javax.servlet.ServletContext servletContext) -
newFrameHandler
public FrameHandler newFrameHandler(Object websocketPojo, ServerUpgradeRequest upgradeRequest, ServerUpgradeResponse upgradeResponse) Description copied from interface:FrameHandlerFactory
Create a FrameHandler from the provided websocketPojo.- Specified by:
newFrameHandler
in interfaceFrameHandlerFactory
- Parameters:
websocketPojo
- the websocket pojo to work withupgradeRequest
- the Upgrade Handshake Request used to create the FrameHandlerupgradeResponse
- the Upgrade Handshake Response used to create the FrameHandler- Returns:
- the API specific FrameHandler, or null if this implementation is unable to create
the FrameHandler (allowing another
FrameHandlerFactory
to try)
-