001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package javax.servlet.http;
018:
019: import java.io.BufferedReader;
020: import java.io.IOException;
021: import java.security.Principal;
022: import java.util.Enumeration;
023: import java.util.Locale;
024:
025: import javax.servlet.RequestDispatcher;
026: import javax.servlet.ServletInputStream;
027: import javax.servlet.ServletRequest;
028:
029: /**
030: * Mock class providing the declarations required to compile the Cocoon code when
031: * the actual library is not present.
032: *
033: * @version $Id: HttpServletRequestWrapper.java 433543 2006-08-22 06:22:54Z crossley $
034: */
035: public class HttpServletRequestWrapper implements HttpServletRequest {
036:
037: public HttpServletRequestWrapper(HttpServletRequest request) {
038:
039: }
040:
041: public String getAuthType() {
042: return null;
043: }
044:
045: public String getContextPath() {
046: return null;
047: }
048:
049: public Cookie[] getCookies() {
050: return null;
051: }
052:
053: public long getDateHeader(String arg0) {
054: return 0;
055: }
056:
057: public String getHeader(String arg0) {
058: return null;
059: }
060:
061: public Enumeration getHeaderNames() {
062: return null;
063: }
064:
065: public Enumeration getHeaders(String arg0) {
066: return null;
067: }
068:
069: public int getIntHeader(String arg0) {
070: return 0;
071: }
072:
073: public String getMethod() {
074: return null;
075: }
076:
077: public String getPathInfo() {
078: return null;
079: }
080:
081: public String getPathTranslated() {
082: return null;
083: }
084:
085: public String getQueryString() {
086: return null;
087: }
088:
089: public String getRemoteUser() {
090: return null;
091: }
092:
093: public String getRequestedSessionId() {
094: return null;
095: }
096:
097: public String getRequestURI() {
098: return null;
099: }
100:
101: public String getServletPath() {
102: return null;
103: }
104:
105: public HttpSession getSession() {
106: return null;
107: }
108:
109: public HttpSession getSession(boolean arg0) {
110: return null;
111: }
112:
113: public Principal getUserPrincipal() {
114: return null;
115: }
116:
117: public boolean isRequestedSessionIdFromCookie() {
118: return false;
119: }
120:
121: public boolean isRequestedSessionIdFromUrl() {
122: return false;
123: }
124:
125: public boolean isRequestedSessionIdFromURL() {
126: return false;
127: }
128:
129: public boolean isRequestedSessionIdValid() {
130: return false;
131: }
132:
133: public boolean isUserInRole(String arg0) {
134: return false;
135: }
136:
137: public Object getAttribute(String arg0) {
138: return null;
139: }
140:
141: public Enumeration getAttributeNames() {
142: return null;
143: }
144:
145: public String getCharacterEncoding() {
146: return null;
147: }
148:
149: public int getContentLength() {
150: return 0;
151: }
152:
153: public String getContentType() {
154: return null;
155: }
156:
157: public ServletInputStream getInputStream() throws IOException {
158: return null;
159: }
160:
161: public Locale getLocale() {
162: return null;
163: }
164:
165: public Enumeration getLocales() {
166: return null;
167: }
168:
169: public String getParameter(String arg0) {
170: return null;
171: }
172:
173: public Enumeration getParameterNames() {
174: return null;
175: }
176:
177: public String[] getParameterValues(String arg0) {
178: return null;
179: }
180:
181: public String getProtocol() {
182: return null;
183: }
184:
185: public BufferedReader getReader() throws IOException {
186: return null;
187: }
188:
189: public String getRealPath(String arg0) {
190: return null;
191: }
192:
193: public String getRemoteAddr() {
194: return null;
195: }
196:
197: public String getRemoteHost() {
198: return null;
199: }
200:
201: public RequestDispatcher getRequestDispatcher(String arg0) {
202: return null;
203: }
204:
205: public String getScheme() {
206: return null;
207: }
208:
209: public String getServerName() {
210: return null;
211: }
212:
213: public int getServerPort() {
214: return 0;
215: }
216:
217: public boolean isSecure() {
218: return false;
219: }
220:
221: public void removeAttribute(String arg0) {
222:
223: }
224:
225: public void setAttribute(String arg0, Object arg1) {
226:
227: }
228:
229: public ServletRequest getRequest() {
230: return null;
231: }
232: }
|