Package org.zkoss.zk.ui.http
Class DHtmlLayoutServlet
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- org.zkoss.zk.ui.http.DHtmlLayoutServlet
-
- All Implemented Interfaces:
java.io.Serializable,jakarta.servlet.Servlet,jakarta.servlet.ServletConfig
public class DHtmlLayoutServlet extends jakarta.servlet.http.HttpServletUsed to process the request for a ZUML page. Though it is called DHtmlLayoutServlet, it is used to serve all kind of HTTP-based clients, including ajax (HTML+Ajax), mil (Mobile Interactive Language) and others (seeDesktop.getDeviceType().Init parameters:
- update-uri
- It specifies the URI which the ZK AU engine is mapped to.
- compress
- It specifies whether to compress the output if the browser supports the compression (Accept-Encoding) and this Servlet is not included by other Servlets.
- log-level
- It specifies the default log level for org.zkoss. If not specified, the system default (usually INFO) is used.
- Author:
- tomyeh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DHtmlLayoutServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()protected voiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)protected voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)voidinit()protected booleanprocess(Session sess, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, java.lang.String originPath, boolean bRichlet)Process the request.-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
initin classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfacejakarta.servlet.Servlet- Overrides:
destroyin classjakarta.servlet.GenericServlet
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, java.io.IOException- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionjava.io.IOException
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, java.io.IOException- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionjava.io.IOException
-
process
protected boolean process(Session sess, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, java.lang.String originPath, boolean bRichlet) throws jakarta.servlet.ServletException, java.io.IOException
Process the request.- Returns:
- false if the page is not found.
- Throws:
jakarta.servlet.ServletExceptionjava.io.IOException- Since:
- 3.0.0
-
-