WebPipelinepublic class WebPipeline extends org.apache.catalina.core.StandardPipeline Pipeline whose invoke logic checks if a given request path represents
an ad-hoc path: If so, this pipeline delegates the request to the
ad-hoc pipeline of its associated web module. Otherwise, this pipeline
processes the request. |
Fields Summary |
---|
private WebModule | webModule |
Constructors Summary |
---|
public WebPipeline(org.apache.catalina.Container container)creates an instance of WebPipeline
super(container);
if(container instanceof WebModule) {
this.webModule = (WebModule)container;
}
|
Methods Summary |
---|
public void | invoke(org.apache.catalina.Request request, org.apache.catalina.Response response)Processes the specified request, and produces the appropriate
response, by invoking the first valve (if any) of this pipeline, or
the pipeline's basic valve.
If the request path to process identifies an ad-hoc path, the
web module's ad-hoc pipeline is invoked.
HttpServletRequest hreq = (HttpServletRequest) request.getRequest();
if (webModule != null && webModule.getAdHocServletName(hreq.getServletPath()) != null) {
webModule.getAdHocPipeline().invoke(request, response);
} else {
RealmAdapter realmAdapter = (RealmAdapter)webModule.getRealm();
if (realmAdapter != null &&
realmAdapter.isSecurityExtensionEnabled()){
doChainInvoke(request, response);
} else {
doInvoke(request, response);
}
}
|
|