Package org.apache.tomcat

Examples of org.apache.tomcat.Wrapper


     * @param name Name of the servlet for which a dispatcher is requested
     */
    public RequestDispatcher getNamedDispatcher(String name) {

  // Identify the Wrapper for the specified servlet, if any
  Wrapper wrapper = (Wrapper) context.findChild(name);
  if (wrapper == null)
      return (null);

  // Create and return a corresponding request dispatcher
  return (null)// FIXME - getNamedDispatcher()
View Full Code Here


     * @param path The path to the desired resource.
     */
    public RequestDispatcher getRequestDispatcher(String path) {

  // Identify the Wrapper for the servlet to process this request
  Wrapper wrapper = context.map(path);
  if (wrapper == null)
      return (null);

  // Create and return a corresponding request dispatcher
  return (null)// FIXME - getRequestDispatcher()
View Full Code Here

  StandardContext context = (StandardContext) getContainer();

  // Select the Wrapper to be used for this Request
  String path = request.getRequest().getRequestURI();
  Wrapper wrapper = context.map(path);
  if (wrapper == null) {
      response.getResponse().sendError
    (HttpServletResponse.SC_NOT_FOUND,
     sm.getString("standardContext.notFound"));
      return;
  }

  // Ask this Wrapper to process this Request
  // XXX - Tell the request which Wrapper we are using?
  // XXX - Would seem to be necesary to calculate getServletPath
  wrapper.invoke(request, response);

    }
View Full Code Here

TOP

Related Classes of org.apache.tomcat.Wrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.