Save This Page
Home » sitemesh-2.3 » com.opensymphony.module » sitemesh » filter » [javadoc | source]
    1   /* This software is published under the terms of the OpenSymphony Software
    2    * License version 1.1, of which a copy has been included with this
    3    * distribution in the LICENSE.txt file. */
    4   package com.opensymphony.module.sitemesh.filter;
    5   
    6   import javax.servlet.RequestDispatcher;
    7   import javax.servlet.http.HttpServletRequest;
    8   import javax.servlet.http.HttpServletRequestWrapper;
    9   
   10   /**
   11    * Will wrap a request for the {@link RequestDispatcherWrapper}.
   12    *
   13    * @author <a href="mailto:joeo@enigmastation.com">Joseph B. Ottinger</a>
   14    * @version $Revision: 1.3 $
   15    */
   16   public class PageRequestWrapper extends HttpServletRequestWrapper {
   17       boolean debug = false;
   18   
   19       public PageRequestWrapper(HttpServletRequest request) {
   20           this(request, false);
   21       }
   22   
   23       public PageRequestWrapper(HttpServletRequest request, boolean debug) {
   24           super(request);
   25           this.debug = debug;
   26       }
   27   
   28       public RequestDispatcher getRequestDispatcher(String s) {
   29           return new RequestDispatcherWrapper(super.getRequestDispatcher(s));
   30       }
   31   }

Save This Page
Home » sitemesh-2.3 » com.opensymphony.module » sitemesh » filter » [javadoc | source]