Package org.zkoss.web.util.resource
Class DspExtendlet
java.lang.Object
org.zkoss.web.util.resource.DspExtendlet
- All Implemented Interfaces:
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
-
Field Summary
Fields inherited from interface org.zkoss.web.util.resource.Extendlet
ALLOW_DIRECT_INCLUDE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetFeature(int feature) Returns if the specified feature is supported.voidinit(ExtendletConfig config) Initializes the resource processor.voidservice(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) Process the specified request.
-
Constructor Details
-
DspExtendlet
public DspExtendlet()
-
-
Method Details
-
init
Description copied from interface:ExtendletInitializes the resource processor. -
getFeature
public boolean getFeature(int feature) Description copied from interface:ExtendletReturns if the specified feature is supported.- Specified by:
getFeaturein interfaceExtendlet
-
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:ExtendletProcess the specified request.- Specified by:
servicein interfaceExtendletpath- the path mapped to this resource processor.- Throws:
jakarta.servlet.ServletExceptionIOException
-