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 org.apache.jetspeed.mockobjects;
018:
019: import java.io.BufferedReader;
020: import java.io.IOException;
021: import java.io.UnsupportedEncodingException;
022: import java.security.Principal;
023: import java.util.Enumeration;
024: import java.util.Locale;
025: import java.util.Map;
026:
027: import javax.servlet.RequestDispatcher;
028: import javax.servlet.ServletInputStream;
029: import javax.servlet.http.Cookie;
030: import javax.servlet.http.HttpServletRequest;
031: import javax.servlet.http.HttpSession;
032:
033: /**
034: * @author <a href="mailto:sweaver@einnovation.com">Scott T. Weaver</a>
035: *
036: */
037: public class MockHttpServletRequest implements HttpServletRequest {
038:
039: /* (non-Javadoc)
040: * @see javax.servlet.http.HttpServletRequest#getAuthType()
041: */
042: public String getAuthType() {
043: // TODO Auto-generated method stub
044: return null;
045: }
046:
047: /* (non-Javadoc)
048: * @see javax.servlet.http.HttpServletRequest#getCookies()
049: */
050: public Cookie[] getCookies() {
051: // TODO Auto-generated method stub
052: return null;
053: }
054:
055: /* (non-Javadoc)
056: * @see javax.servlet.http.HttpServletRequest#getDateHeader(java.lang.String)
057: */
058: public long getDateHeader(String arg0) {
059: // TODO Auto-generated method stub
060: return 0;
061: }
062:
063: /* (non-Javadoc)
064: * @see javax.servlet.http.HttpServletRequest#getHeader(java.lang.String)
065: */
066: public String getHeader(String arg0) {
067: // TODO Auto-generated method stub
068: return null;
069: }
070:
071: /* (non-Javadoc)
072: * @see javax.servlet.http.HttpServletRequest#getHeaders(java.lang.String)
073: */
074: public Enumeration getHeaders(String arg0) {
075: // TODO Auto-generated method stub
076: return null;
077: }
078:
079: /* (non-Javadoc)
080: * @see javax.servlet.http.HttpServletRequest#getHeaderNames()
081: */
082: public Enumeration getHeaderNames() {
083: // TODO Auto-generated method stub
084: return null;
085: }
086:
087: /* (non-Javadoc)
088: * @see javax.servlet.http.HttpServletRequest#getIntHeader(java.lang.String)
089: */
090: public int getIntHeader(String arg0) {
091: // TODO Auto-generated method stub
092: return 0;
093: }
094:
095: /* (non-Javadoc)
096: * @see javax.servlet.http.HttpServletRequest#getMethod()
097: */
098: public String getMethod() {
099: // TODO Auto-generated method stub
100: return null;
101: }
102:
103: /* (non-Javadoc)
104: * @see javax.servlet.http.HttpServletRequest#getPathInfo()
105: */
106: public String getPathInfo() {
107: // TODO Auto-generated method stub
108: return null;
109: }
110:
111: /* (non-Javadoc)
112: * @see javax.servlet.http.HttpServletRequest#getPathTranslated()
113: */
114: public String getPathTranslated() {
115: // TODO Auto-generated method stub
116: return null;
117: }
118:
119: /* (non-Javadoc)
120: * @see javax.servlet.http.HttpServletRequest#getContextPath()
121: */
122: public String getContextPath() {
123: // TODO Auto-generated method stub
124: return null;
125: }
126:
127: /* (non-Javadoc)
128: * @see javax.servlet.http.HttpServletRequest#getQueryString()
129: */
130: public String getQueryString() {
131: // TODO Auto-generated method stub
132: return null;
133: }
134:
135: /* (non-Javadoc)
136: * @see javax.servlet.http.HttpServletRequest#getRemoteUser()
137: */
138: public String getRemoteUser() {
139: // TODO Auto-generated method stub
140: return null;
141: }
142:
143: /* (non-Javadoc)
144: * @see javax.servlet.http.HttpServletRequest#isUserInRole(java.lang.String)
145: */
146: public boolean isUserInRole(String arg0) {
147: // TODO Auto-generated method stub
148: return false;
149: }
150:
151: /* (non-Javadoc)
152: * @see javax.servlet.http.HttpServletRequest#getUserPrincipal()
153: */
154: public Principal getUserPrincipal() {
155: // TODO Auto-generated method stub
156: return null;
157: }
158:
159: /* (non-Javadoc)
160: * @see javax.servlet.http.HttpServletRequest#getRequestedSessionId()
161: */
162: public String getRequestedSessionId() {
163: // TODO Auto-generated method stub
164: return null;
165: }
166:
167: /* (non-Javadoc)
168: * @see javax.servlet.http.HttpServletRequest#getRequestURI()
169: */
170: public String getRequestURI() {
171: // TODO Auto-generated method stub
172: return null;
173: }
174:
175: /* (non-Javadoc)
176: * @see javax.servlet.http.HttpServletRequest#getRequestURL()
177: */
178: public StringBuffer getRequestURL() {
179: // TODO Auto-generated method stub
180: return null;
181: }
182:
183: /* (non-Javadoc)
184: * @see javax.servlet.http.HttpServletRequest#getServletPath()
185: */
186: public String getServletPath() {
187: // TODO Auto-generated method stub
188: return null;
189: }
190:
191: /* (non-Javadoc)
192: * @see javax.servlet.http.HttpServletRequest#getSession(boolean)
193: */
194: public HttpSession getSession(boolean arg0) {
195: // TODO Auto-generated method stub
196: return null;
197: }
198:
199: /* (non-Javadoc)
200: * @see javax.servlet.http.HttpServletRequest#getSession()
201: */
202: public HttpSession getSession() {
203: // TODO Auto-generated method stub
204: return null;
205: }
206:
207: /* (non-Javadoc)
208: * @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdValid()
209: */
210: public boolean isRequestedSessionIdValid() {
211: // TODO Auto-generated method stub
212: return false;
213: }
214:
215: /* (non-Javadoc)
216: * @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromCookie()
217: */
218: public boolean isRequestedSessionIdFromCookie() {
219: // TODO Auto-generated method stub
220: return false;
221: }
222:
223: /* (non-Javadoc)
224: * @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromURL()
225: */
226: public boolean isRequestedSessionIdFromURL() {
227: // TODO Auto-generated method stub
228: return false;
229: }
230:
231: /* (non-Javadoc)
232: * @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromUrl()
233: */
234: public boolean isRequestedSessionIdFromUrl() {
235: // TODO Auto-generated method stub
236: return false;
237: }
238:
239: /* (non-Javadoc)
240: * @see javax.servlet.ServletRequest#getAttribute(java.lang.String)
241: */
242: public Object getAttribute(String arg0) {
243: // TODO Auto-generated method stub
244: return null;
245: }
246:
247: /* (non-Javadoc)
248: * @see javax.servlet.ServletRequest#getAttributeNames()
249: */
250: public Enumeration getAttributeNames() {
251: // TODO Auto-generated method stub
252: return null;
253: }
254:
255: /* (non-Javadoc)
256: * @see javax.servlet.ServletRequest#getCharacterEncoding()
257: */
258: public String getCharacterEncoding() {
259: // TODO Auto-generated method stub
260: return null;
261: }
262:
263: /* (non-Javadoc)
264: * @see javax.servlet.ServletRequest#setCharacterEncoding(java.lang.String)
265: */
266: public void setCharacterEncoding(String arg0)
267: throws UnsupportedEncodingException {
268: // TODO Auto-generated method stub
269:
270: }
271:
272: /* (non-Javadoc)
273: * @see javax.servlet.ServletRequest#getContentLength()
274: */
275: public int getContentLength() {
276: // TODO Auto-generated method stub
277: return 0;
278: }
279:
280: /* (non-Javadoc)
281: * @see javax.servlet.ServletRequest#getContentType()
282: */
283: public String getContentType() {
284: // TODO Auto-generated method stub
285: return null;
286: }
287:
288: /* (non-Javadoc)
289: * @see javax.servlet.ServletRequest#getInputStream()
290: */
291: public ServletInputStream getInputStream() throws IOException {
292: // TODO Auto-generated method stub
293: return null;
294: }
295:
296: /* (non-Javadoc)
297: * @see javax.servlet.ServletRequest#getParameter(java.lang.String)
298: */
299: public String getParameter(String arg0) {
300: // TODO Auto-generated method stub
301: return null;
302: }
303:
304: /* (non-Javadoc)
305: * @see javax.servlet.ServletRequest#getParameterNames()
306: */
307: public Enumeration getParameterNames() {
308: // TODO Auto-generated method stub
309: return null;
310: }
311:
312: /* (non-Javadoc)
313: * @see javax.servlet.ServletRequest#getParameterValues(java.lang.String)
314: */
315: public String[] getParameterValues(String arg0) {
316: // TODO Auto-generated method stub
317: return null;
318: }
319:
320: /* (non-Javadoc)
321: * @see javax.servlet.ServletRequest#getParameterMap()
322: */
323: public Map getParameterMap() {
324: // TODO Auto-generated method stub
325: return null;
326: }
327:
328: /* (non-Javadoc)
329: * @see javax.servlet.ServletRequest#getProtocol()
330: */
331: public String getProtocol() {
332: // TODO Auto-generated method stub
333: return null;
334: }
335:
336: /* (non-Javadoc)
337: * @see javax.servlet.ServletRequest#getScheme()
338: */
339: public String getScheme() {
340: // TODO Auto-generated method stub
341: return null;
342: }
343:
344: /* (non-Javadoc)
345: * @see javax.servlet.ServletRequest#getServerName()
346: */
347: public String getServerName() {
348: // TODO Auto-generated method stub
349: return null;
350: }
351:
352: /* (non-Javadoc)
353: * @see javax.servlet.ServletRequest#getServerPort()
354: */
355: public int getServerPort() {
356: // TODO Auto-generated method stub
357: return 0;
358: }
359:
360: /* (non-Javadoc)
361: * @see javax.servlet.ServletRequest#getReader()
362: */
363: public BufferedReader getReader() throws IOException {
364: // TODO Auto-generated method stub
365: return null;
366: }
367:
368: /* (non-Javadoc)
369: * @see javax.servlet.ServletRequest#getRemoteAddr()
370: */
371: public String getRemoteAddr() {
372: // TODO Auto-generated method stub
373: return null;
374: }
375:
376: /* (non-Javadoc)
377: * @see javax.servlet.ServletRequest#getRemoteHost()
378: */
379: public String getRemoteHost() {
380: // TODO Auto-generated method stub
381: return null;
382: }
383:
384: /* (non-Javadoc)
385: * @see javax.servlet.ServletRequest#setAttribute(java.lang.String, java.lang.Object)
386: */
387: public void setAttribute(String arg0, Object arg1) {
388: // TODO Auto-generated method stub
389:
390: }
391:
392: /* (non-Javadoc)
393: * @see javax.servlet.ServletRequest#removeAttribute(java.lang.String)
394: */
395: public void removeAttribute(String arg0) {
396: // TODO Auto-generated method stub
397:
398: }
399:
400: /* (non-Javadoc)
401: * @see javax.servlet.ServletRequest#getLocale()
402: */
403: public Locale getLocale() {
404: // TODO Auto-generated method stub
405: return null;
406: }
407:
408: /* (non-Javadoc)
409: * @see javax.servlet.ServletRequest#getLocales()
410: */
411: public Enumeration getLocales() {
412: // TODO Auto-generated method stub
413: return null;
414: }
415:
416: /* (non-Javadoc)
417: * @see javax.servlet.ServletRequest#isSecure()
418: */
419: public boolean isSecure() {
420: // TODO Auto-generated method stub
421: return false;
422: }
423:
424: /* (non-Javadoc)
425: * @see javax.servlet.ServletRequest#getRequestDispatcher(java.lang.String)
426: */
427: public RequestDispatcher getRequestDispatcher(String arg0) {
428: // TODO Auto-generated method stub
429: return null;
430: }
431:
432: /* (non-Javadoc)
433: * @see javax.servlet.ServletRequest#getRealPath(java.lang.String)
434: */
435: public String getRealPath(String arg0) {
436: // TODO Auto-generated method stub
437: return null;
438: }
439:
440: }
|