| servletunit.struts.StrutsServletContextWrapper
StrutsServletContextWrapper | public class StrutsServletContextWrapper extends ServletContextWrapper (Code) | | A wrapper for the ServletContext class. This is used in
CactusStrutsTestCase so that we can retrieve the forward
processed by the ActionServlet and use absolute paths
for Struts resources. This allows us to to use
the ActionServlet as a black box, rather than mimic its
behavior as was previously the case.
|
processRequest | boolean processRequest(Code) | | |
getResource | public URL getResource(String pathname) throws MalformedURLException(Code) | | Override the getResource method to look for resources in the file system, allowing
the use of absolute paths for Struts configuration files. If the resource path exists
in the file system, this method will return a URL based on the supplied path; otherwise,
it defers to the ServletContext loader.
|
getResourceAsStream | public InputStream getResourceAsStream(String pathname)(Code) | | Override the getResourceAsStream method to look for resources in the file system, allowing
the use of absolute paths for Struts configuration files. If the resource path exists
in the file system, this method will return a URL based on the supplied path; otherwise,
it defers to the ServletContext loader.
|
setProcessRequest | public void setProcessRequest(boolean flag)(Code) | | |
|
|