public interface Extendlet
ClassWebResource
to process particular
content.
To add a resource processor to ClassWebResource
, use
ClassWebResource.addExtendlet(java.lang.String, org.zkoss.web.util.resource.Extendlet)
.
ClassWebResource.addExtendlet(java.lang.String, org.zkoss.web.util.resource.Extendlet)
Modifier and Type | Field and Description |
---|---|
static int |
ALLOW_DIRECT_INCLUDE
Used with
getFeature(int) to indicate the extendlet can
be included directly without going thru Web container. |
Modifier and Type | Method and Description |
---|---|
boolean |
getFeature(int feature)
Returns if the specified feature is supported.
|
void |
init(ExtendletConfig config)
Initializes the resource processor.
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String path)
Process the specified request.
|
static final int ALLOW_DIRECT_INCLUDE
getFeature(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(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
will be invoked directly (rather than calling RequestDispatcher's
include method.
void init(ExtendletConfig config)
boolean getFeature(int feature)
void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String path) throws javax.servlet.ServletException, java.io.IOException
path
- the path mapped to this resource processor.javax.servlet.ServletException
java.io.IOException
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.