Class CometAsyncServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.zkoss.zkmax.ui.comet.CometAsyncServlet
All Implemented Interfaces:
Serializable, jakarta.servlet.Servlet, jakarta.servlet.ServletConfig

public class CometAsyncServlet extends jakarta.servlet.http.HttpServlet
The synchronous servlet for supporting comet. It requires Servlet 3.
Since:
6.0.0
Author:
tomyeh
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    protected void
    doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    void
     
    static void
    install(jakarta.servlet.ServletContext ctx)
    Installs this servlet.
    static boolean
    isInstalled(jakarta.servlet.ServletContext ctx)
    Returns whether this servlet has been installed.

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CometAsyncServlet

      public CometAsyncServlet()
  • Method Details

    • install

      public static void install(jakarta.servlet.ServletContext ctx)
      Installs this servlet.
    • isInstalled

      public static boolean isInstalled(jakarta.servlet.ServletContext ctx)
      Returns whether this servlet has been installed.
    • init

      public void init() throws jakarta.servlet.ServletException
      Overrides:
      init in class jakarta.servlet.GenericServlet
      Throws:
      jakarta.servlet.ServletException
    • doPost

      protected void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doPost in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • doGet

      protected void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doGet in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException