Class JakartaWebSocketServletContainerInitializer
java.lang.Object
org.eclipse.jetty.websocket.jakarta.server.config.JakartaWebSocketServletContainerInitializer
- All Implemented Interfaces:
jakarta.servlet.ServletContainerInitializer
public class JakartaWebSocketServletContainerInitializer
extends Object
implements jakarta.servlet.ServletContainerInitializer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJakartaWebSocketServletContainerInitializer(JakartaWebSocketServletContainerInitializer.Configurator configurator) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigure(ServletContextHandler context, JakartaWebSocketServletContainerInitializer.Configurator configurator) Configure theServletContextHandlerto callonStartup(Set, ServletContext)during theServletContextinitialization phase.void
-
Field Details
-
ATTR_JAKARTA_SERVER_CONTAINER
The ServletContext attribute key name for the ServerContainer per jakarta.websocket spec 1.0 final section 6.4 Programmatic Server Deployment -
ENABLE_KEY
- See Also:
-
HTTPCLIENT_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
JakartaWebSocketServletContainerInitializer
public JakartaWebSocketServletContainerInitializer() -
JakartaWebSocketServletContainerInitializer
public JakartaWebSocketServletContainerInitializer(JakartaWebSocketServletContainerInitializer.Configurator configurator)
-
-
Method Details
-
configure
public static void configure(ServletContextHandler context, JakartaWebSocketServletContainerInitializer.Configurator configurator) Configure theServletContextHandlerto callonStartup(Set, ServletContext)during theServletContextinitialization phase.- Parameters:
context- the context to add listener toconfigurator- the lambda that is called to allow theServerContainerto be configured during theServletContextinitialization phase
-
onStartup
public void onStartup(Set<Class<?>> c, jakarta.servlet.ServletContext context) throws jakarta.servlet.ServletException - Specified by:
onStartupin interfacejakarta.servlet.ServletContainerInitializer- Throws:
jakarta.servlet.ServletException
-