KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > module > sitemesh > filter > PageRequestWrapper


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 JavaDoc;
7 import javax.servlet.http.HttpServletRequest JavaDoc;
8 import javax.servlet.http.HttpServletRequestWrapper JavaDoc;
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 JavaDoc {
17     boolean debug = false;
18
19     public PageRequestWrapper(HttpServletRequest JavaDoc request) {
20         this(request, false);
21     }
22
23     public PageRequestWrapper(HttpServletRequest JavaDoc request, boolean debug) {
24         super(request);
25         this.debug = debug;
26     }
27
28     public RequestDispatcher JavaDoc getRequestDispatcher(String JavaDoc s) {
29         return new RequestDispatcherWrapper(super.getRequestDispatcher(s));
30     }
31 }
32
Popular Tags