Class DspExtendlet

java.lang.Object
org.zkoss.web.util.resource.DspExtendlet
All Implemented Interfaces:
Extendlet

public class DspExtendlet extends Object implements Extendlet
The DSP resource processor (Extendlet) used to parse DSP files loaded from the classpath.

Note: it assumes the file being loaded is UTF-8. The encoding of the output stream is default to UTF-8, but DSP can change by use of the page directive.

Since:
2.4.1 (public since 5.0.5)
Author:
tomyeh
  • Constructor Details

    • DspExtendlet

      public DspExtendlet()
  • Method Details

    • init

      public void init(ExtendletConfig config)
      Description copied from interface: Extendlet
      Initializes the resource processor.
      Specified by:
      init in interface Extendlet
    • getFeature

      public boolean getFeature(int feature)
      Description copied from interface: Extendlet
      Returns if the specified feature is supported.
      Specified by:
      getFeature in interface Extendlet
    • service

      public void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) throws jakarta.servlet.ServletException, IOException
      Description copied from interface: Extendlet
      Process the specified request.
      Specified by:
      service in interface Extendlet
      path - the path mapped to this resource processor.
      Throws:
      jakarta.servlet.ServletException
      IOException