Package org.zkoss.zkmax.ui.comet
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidinit()static voidinstall(jakarta.servlet.ServletContext ctx) Installs this servlet.static booleanisInstalled(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, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
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:
initin classjakarta.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:
doPostin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-