Class JettyWebSocketServletContainerInitializer

java.lang.Object
org.eclipse.jetty.ee11.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.
  • Constructor Details

  • Method Details

    • configure

      public static void configure(org.eclipse.jetty.ee11.servlet.ServletContextHandler context, JettyWebSocketServletContainerInitializer.Configurator configurator)
      Configure the ServletContextHandler to call the JettyWebSocketServletContainerInitializer during the ServletContext initialization phase.
      Parameters:
      context - the context to add listener to.
      configurator - a lambda that is called to allow the WebSocketMappings to be configured during ServletContext initialization phase
    • onStartup

      public void onStartup(Set<Class<?>> c, jakarta.servlet.ServletContext context)
      Specified by:
      onStartup in interface jakarta.servlet.ServletContainerInitializer