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