Class WebSocketHandler

java.lang.Object
org.apache.felix.http.base.internal.handler.WebSocketHandler

public final class WebSocketHandler extends Object
Class that handles initialization for servlets extending JettyWebSocketServlet.
  • Constructor Details

    • WebSocketHandler

      public WebSocketHandler(ServletHandler servletHandler)
  • Method Details

    • lazyInit

      public void lazyInit()
    • shouldInit

      public boolean shouldInit()
      Returns true if the servlet should be initialized, false otherwise.
      Returns:
      true if the servlet should be initialized, false otherwise
    • shouldDestroy

      public boolean shouldDestroy()
      Returns true if the servlet was initialized earlier, false otherwise.
      Returns:
      true if the servlet should be destroyed, false otherwise
    • isJettyWebSocketServlet

      public static boolean isJettyWebSocketServlet(Object servlet)
      Check if the servlet is a JettyWebSocketServlet. JettyWebSocket classes are handled differently due to FELIX-6746.
      Parameters:
      servlet - the servlet to check
      Returns:
      true if the servlet is a JettyWebSocketServlet, false otherwise