Package org.zkoss.web.util.resource
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
FieldsModifier and TypeFieldDescriptionstatic final intUsed withgetFeature(int)to indicate the extendlet can be included directly without going thru Web container. -
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.
-
Field Details
-
ALLOW_DIRECT_INCLUDE
static final int ALLOW_DIRECT_INCLUDEUsed withgetFeature(int)to indicate the extendlet can be included directly without going thru Web container.In other words, if getFeature(ALLOW_DIRECT_INCLUDE) is true and a corresponding page is included, then
service(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse, java.lang.String)will be invoked directly (rather than calling RequestDispatcher's include method.- Since:
- 3.5.2
- See Also:
-
-
Method Details
-
init
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.ServletExceptionIOException- Since:
- 5.0.0
-