Class JettyWebSocketServletContainerInitializer
java.lang.Object
org.eclipse.jetty.websocket.server.config.JettyWebSocketServletContainerInitializer
- All Implemented Interfaces:
javax.servlet.ServletContainerInitializer
public class JettyWebSocketServletContainerInitializer
extends Object
implements javax.servlet.ServletContainerInitializer
ServletContext configuration for Jetty Native WebSockets API.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Constructor Summary
ConstructorDescriptionJettyWebSocketServletContainerInitializer
(JettyWebSocketServletContainerInitializer.Configurator configurator) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
configure
(ServletContextHandler context, JettyWebSocketServletContainerInitializer.Configurator configurator) Configure theServletContextHandler
to call theJettyWebSocketServletContainerInitializer
during theServletContext
initialization phase.void
-
Constructor Details
-
JettyWebSocketServletContainerInitializer
public JettyWebSocketServletContainerInitializer() -
JettyWebSocketServletContainerInitializer
public JettyWebSocketServletContainerInitializer(JettyWebSocketServletContainerInitializer.Configurator configurator)
-
-
Method Details
-
configure
public static void configure(ServletContextHandler context, JettyWebSocketServletContainerInitializer.Configurator configurator) Configure theServletContextHandler
to call theJettyWebSocketServletContainerInitializer
during theServletContext
initialization phase.- Parameters:
context
- the context to add listener to.configurator
- a lambda that is called to allow theWebSocketMappings
to be configured duringServletContext
initialization phase
-
onStartup
- Specified by:
onStartup
in interfacejavax.servlet.ServletContainerInitializer
-