Class WhiteboardWebSocketServletHandler

All Implemented Interfaces:
Comparable<ServletHandler>

public final class WhiteboardWebSocketServletHandler extends WhiteboardServletHandler
Servlet handler for servlets extending JettyWebSocketServlet registered through the http whiteboard.
  • Constructor Details

    • WhiteboardWebSocketServletHandler

      public WhiteboardWebSocketServletHandler(long contextServiceId, ExtServletContext context, ServletInfo servletInfo, org.osgi.framework.BundleContext contextBundleContext, org.osgi.framework.Bundle registeringBundle, org.osgi.framework.Bundle httpWhiteboardBundle, Object servlet)
  • Method Details

    • init

      public int init()
      Description copied from class: ServletHandler
      Initialize the object
      Overrides:
      init in class WhiteboardServletHandler
      Returns:
      {code -1} on success, a failure reason according to DTOConstants otherwise.
    • handle

      public void handle(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res) throws jakarta.servlet.ServletException, IOException
      Overrides:
      handle in class ServletHandler
      Throws:
      jakarta.servlet.ServletException
      IOException
    • destroy

      public boolean destroy()
      Overrides:
      destroy in class WhiteboardServletHandler