Interface Extendlet

All Known Implementing Classes:
DspExtendlet

public interface Extendlet
A plugin of ClassWebResource to process particular content.

To add a resource processor to ClassWebResource, use ClassWebResource.addExtendlet(java.lang.String, org.zkoss.web.util.resource.Extendlet).

Since:
2.4.1
Author:
tomyeh
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Used with getFeature(int) to indicate the extendlet can be included directly without going thru Web container.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    getFeature(int feature)
    Returns if the specified feature is supported.
    void
    Initializes the resource processor.
    void
    service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path)
    Process the specified request.
  • Field Details

  • Method Details

    • init

      void init(ExtendletConfig config)
      Initializes the resource processor.
    • getFeature

      boolean getFeature(int feature)
      Returns if the specified feature is supported.
      Since:
      3.5.2
    • service

      void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) throws jakarta.servlet.ServletException, IOException
      Process the specified request.
      Parameters:
      path - the path mapped to this resource processor.
      Throws:
      jakarta.servlet.ServletException
      IOException
      Since:
      5.0.0