View Javadoc

1   /*
2   MadCaching is a Tile Caching solution
3   Copyright (C) 2005  Mac Vu
4   
5   This program is free software; you can redistribute it and/or
6   modify it under the terms of the GNU General Public License
7   as published by the Free Software Foundation; either version 2
8   of the License, or (at your option) any later version.
9   
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  GNU General Public License for more details.
14  
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18   */
19  package com.macvu.tiles.capture;
20  
21  import javax.servlet.http.HttpServletRequestWrapper;
22  import javax.servlet.http.HttpServletRequest;
23  import javax.servlet.http.Cookie;
24  import javax.servlet.http.HttpSession;
25  import java.util.Enumeration;
26  import java.security.Principal;
27  
28  public class CacheHttpServletRequest extends HttpServletRequestWrapper {
29      public CacheHttpServletRequest(HttpServletRequest httpServletRequest) {
30          super(httpServletRequest);
31      }
32  
33      public String getAuthType() {
34          return super.getAuthType();
35      }
36  
37      public Cookie[] getCookies() {
38          return super.getCookies();
39      }
40  
41      public long getDateHeader(String s) {
42          return super.getDateHeader(s);
43      }
44  
45      public String getHeader(String s) {
46          return super.getHeader(s);
47      }
48  
49      public Enumeration getHeaders(String s) {
50          return super.getHeaders(s);
51      }
52  
53      public Enumeration getHeaderNames() {
54          return super.getHeaderNames();
55      }
56  
57      public int getIntHeader(String s) {
58          return super.getIntHeader(s);
59      }
60  
61      public String getMethod() {
62          return super.getMethod();
63      }
64  
65      public String getPathInfo() {
66          return super.getPathInfo();
67      }
68  
69      public String getPathTranslated() {
70          return super.getPathTranslated();
71      }
72  
73      public String getContextPath() {
74          return super.getContextPath();
75      }
76  
77      public String getQueryString() {
78          return super.getQueryString();
79      }
80  
81      public String getRemoteUser() {
82          return super.getRemoteUser();
83      }
84  
85      public boolean isUserInRole(String s) {
86          return super.isUserInRole(s);
87      }
88  
89      public Principal getUserPrincipal() {
90          return super.getUserPrincipal();
91      }
92  
93      public String getRequestedSessionId() {
94          return super.getRequestedSessionId();
95      }
96  
97      public String getRequestURI() {
98          return super.getRequestURI();
99      }
100 
101     public StringBuffer getRequestURL() {
102         return super.getRequestURL();
103     }
104 
105     public String getServletPath() {
106         return super.getServletPath();
107     }
108 
109     public HttpSession getSession(boolean b) {
110         return super.getSession(b);
111     }
112 
113     public HttpSession getSession() {
114         return super.getSession();
115     }
116 
117     public boolean isRequestedSessionIdValid() {
118         return super.isRequestedSessionIdValid();
119     }
120 
121     public boolean isRequestedSessionIdFromCookie() {
122         return super.isRequestedSessionIdFromCookie();
123     }
124 
125     public boolean isRequestedSessionIdFromURL() {
126         return super.isRequestedSessionIdFromURL();
127     }
128 
129     public boolean isRequestedSessionIdFromUrl() {
130         return super.isRequestedSessionIdFromUrl();
131     }
132 }