FileDocCategorySizeDatePackage
WebPipeline.javaAPI DocGlassfish v2 API4072Fri May 04 22:36:02 BST 2007com.sun.enterprise.web

WebPipeline

public 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

param
container

        super(container);
        if(container instanceof WebModule) {
            this.webModule = (WebModule)container;
        }
    
Methods Summary
public voidinvoke(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.

param
request The request to process
param
response The response to return


        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);
            }
        }