| java.lang.Object org.apache.catalina.core.ApplicationDispatcher
ApplicationDispatcher | final class ApplicationDispatcher implements RequestDispatcher(Code) | | Standard implementation of RequestDispatcher that allows a
request to be forwarded to a different resource to create the ultimate
response, or to include the output of another resource in the response
from this resource. This implementation allows application level servlets
to wrap the request and/or response objects that are passed on to the
called resource, as long as the wrapping classes extend
javax.servlet.ServletRequestWrapper and
javax.servlet.ServletResponseWrapper .
author: Craig R. McClanahan version: $Revision: 531415 $ $Date: 2007-04-23 12:30:02 +0200 (lun., 23 avr. 2007) $ |
ApplicationDispatcher | public ApplicationDispatcher(Wrapper wrapper, String requestURI, String servletPath, String pathInfo, String queryString, String name)(Code) | | Construct a new instance of this class, configured according to the
specified parameters. If both servletPath and pathInfo are
null , it will be assumed that this RequestDispatcher
was acquired by name, rather than by path.
Parameters: wrapper - The Wrapper associated with the resource that willbe forwarded to or included (required) Parameters: requestURI - The request URI to this resource (if any) Parameters: servletPath - The revised servlet path to this resource (if any) Parameters: pathInfo - The revised extra path information to this resource(if any) Parameters: queryString - Query string parameters included with this request(if any) Parameters: name - Servlet name (if a named dispatcher was created)else null |
forward | public void forward(ServletRequest request, ServletResponse response) throws ServletException, IOException(Code) | | Forward this request and response to another resource for processing.
Any runtime exception, IOException, or ServletException thrown by the
called servlet will be propogated to the caller.
Parameters: request - The servlet request to be forwarded Parameters: response - The servlet response to be forwarded exception: IOException - if an input/output error occurs exception: ServletException - if a servlet exception occurs |
getInfo | public String getInfo()(Code) | | Return the descriptive information about this implementation.
|
include | public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException(Code) | | Include the response from another resource in the current response.
Any runtime exception, IOException, or ServletException thrown by the
called servlet will be propogated to the caller.
Parameters: request - The servlet request that is including this one Parameters: response - The servlet response to be appended to exception: IOException - if an input/output error occurs exception: ServletException - if a servlet exception occurs |
|
|