Class DHtmlLayoutFilter

java.lang.Object
org.zkoss.zk.ui.http.DHtmlLayoutFilter
All Implemented Interfaces:
jakarta.servlet.Filter

public class DHtmlLayoutFilter extends Object implements jakarta.servlet.Filter
Used to post-process the response into a ZK page. It is useful if you have a servlet using servlets, JSP or other technology.

How to use:

  • Decorates the servlet to embed the ZK components and attributes, such as zk:onClick="...".
  • Maps the servlet to the filter in web.xml
Author:
tomyeh
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)
     
    final void
    init(jakarta.servlet.FilterConfig config)
     
    protected void
    process(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String content)
    Processes the content

    Methods inherited from class java.lang.Object

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

    • DHtmlLayoutFilter

      public DHtmlLayoutFilter()
  • Method Details

    • process

      protected void process(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String content) throws jakarta.servlet.ServletException, IOException
      Processes the content
      Throws:
      jakarta.servlet.ServletException
      IOException
      Since:
      3.0.0
    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doFilter in interface jakarta.servlet.Filter
      Throws:
      IOException
      jakarta.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.servlet.Filter
    • init

      public final void init(jakarta.servlet.FilterConfig config) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Filter
      Throws:
      jakarta.servlet.ServletException