1 23 24 package com.sun.enterprise.web; 25 26 import java.io.IOException ; 27 import javax.servlet.ServletException ; 28 import javax.servlet.http.HttpServletRequest ; 29 import org.apache.catalina.Container; 30 import org.apache.catalina.Request; 31 import org.apache.catalina.Response; 32 import org.apache.catalina.core.StandardPipeline; 33 34 40 public class WebPipeline extends StandardPipeline { 41 42 private WebModule webModule; 43 44 48 public WebPipeline(Container container) { 49 super(container); 50 if(container instanceof WebModule) { 51 this.webModule = (WebModule)container; 52 } 53 } 54 55 66 public void invoke(Request request, Response response) 67 throws IOException , ServletException { 68 69 HttpServletRequest hreq = (HttpServletRequest ) request.getRequest(); 70 if (webModule != null && webModule.getAdHocServletName(hreq.getServletPath()) != null) { 71 webModule.getAdHocPipeline().invoke(request, response); 72 } else { 73 doInvoke(request, response); 74 } 75 } 76 } 77 | Popular Tags |