Class JettyWebSocketServletContainerInitializer
java.lang.Object
org.eclipse.jetty.ee9.websocket.server.config.JettyWebSocketServletContainerInitializer
- All Implemented Interfaces:
- jakarta.servlet.ServletContainerInitializer
public class JettyWebSocketServletContainerInitializer
extends Object
implements jakarta.servlet.ServletContainerInitializer
ServletContext configuration for Jetty Native WebSockets API.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interface
- 
Constructor SummaryConstructorsConstructorDescriptionJettyWebSocketServletContainerInitializer(JettyWebSocketServletContainerInitializer.Configurator configurator) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidconfigure(ServletContextHandler context, JettyWebSocketServletContainerInitializer.Configurator configurator) Configure theServletContextHandlerto call theJettyWebSocketServletContainerInitializerduring theServletContextinitialization phase.void
- 
Constructor Details- 
JettyWebSocketServletContainerInitializerpublic JettyWebSocketServletContainerInitializer()
- 
JettyWebSocketServletContainerInitializerpublic JettyWebSocketServletContainerInitializer(JettyWebSocketServletContainerInitializer.Configurator configurator) 
 
- 
- 
Method Details- 
configurepublic static void configure(ServletContextHandler context, JettyWebSocketServletContainerInitializer.Configurator configurator) Configure theServletContextHandlerto call theJettyWebSocketServletContainerInitializerduring theServletContextinitialization phase.- Parameters:
- context- the context to add listener to.
- configurator- a lambda that is called to allow the- WebSocketMappingsto be configured during- ServletContextinitialization phase
 
- 
onStartup
 
-