1 package org.andromda.cartridges.jsf.portlet.myfaces.tomahawk.support;
2
3 import java.io.BufferedReader;
4 import java.io.IOException;
5 import java.io.UnsupportedEncodingException;
6 import java.security.Principal;
7 import java.util.Enumeration;
8 import java.util.Locale;
9 import java.util.Map;
10 import javax.servlet.RequestDispatcher;
11 import javax.servlet.ServletInputStream;
12 import javax.servlet.http.Cookie;
13 import javax.servlet.http.HttpServletRequest;
14 import javax.servlet.http.HttpSession;
15
16
17
18
19 public class MockHttpServletRequest
20 implements HttpServletRequest
21 {
22
23
24
25 public String getAuthType()
26 {
27 return null;
28 }
29
30
31
32
33 public String getContextPath()
34 {
35 return null;
36 }
37
38
39
40
41 public Cookie[] getCookies()
42 {
43 return new Cookie[0];
44 }
45
46
47
48
49 public long getDateHeader(String arg0)
50 {
51 return 0;
52 }
53
54
55
56
57 public String getHeader(String arg0)
58 {
59 return null;
60 }
61
62
63
64
65 public Enumeration getHeaderNames()
66 {
67 return null;
68 }
69
70
71
72
73 public Enumeration getHeaders(String arg0)
74 {
75 return null;
76 }
77
78
79
80
81 public int getIntHeader(String arg0)
82 {
83 return 0;
84 }
85
86
87
88
89 public String getMethod()
90 {
91 return null;
92 }
93
94
95
96
97 public String getPathInfo()
98 {
99 return null;
100 }
101
102
103
104
105 public String getPathTranslated()
106 {
107 return null;
108 }
109
110
111
112
113 public String getQueryString()
114 {
115 return null;
116 }
117
118
119
120
121 public String getRemoteUser()
122 {
123 return null;
124 }
125
126
127
128
129 public String getRequestURI()
130 {
131 return null;
132 }
133
134
135
136
137 public StringBuffer getRequestURL()
138 {
139 return null;
140 }
141
142
143
144
145 public String getRequestedSessionId()
146 {
147 return null;
148 }
149
150
151
152
153 public String getServletPath()
154 {
155 return null;
156 }
157
158
159
160
161 public HttpSession getSession()
162 {
163 return null;
164 }
165
166
167
168
169 public HttpSession getSession(boolean arg0)
170 {
171 return null;
172 }
173
174
175
176
177 public Principal getUserPrincipal()
178 {
179 return null;
180 }
181
182
183
184
185 public boolean isRequestedSessionIdFromCookie()
186 {
187 return false;
188 }
189
190
191
192
193 public boolean isRequestedSessionIdFromURL()
194 {
195 return false;
196 }
197
198
199
200
201
202 @Deprecated
203 public boolean isRequestedSessionIdFromUrl()
204 {
205 return false;
206 }
207
208
209
210
211 public boolean isRequestedSessionIdValid()
212 {
213 return false;
214 }
215
216
217
218
219 public boolean isUserInRole(String arg0)
220 {
221 return false;
222 }
223
224
225
226
227 public Object getAttribute(String arg0)
228 {
229 return null;
230 }
231
232
233
234
235 public Enumeration getAttributeNames()
236 {
237 return null;
238 }
239
240
241
242
243 public String getCharacterEncoding()
244 {
245 return null;
246 }
247
248
249
250
251 public int getContentLength()
252 {
253 return 0;
254 }
255
256
257
258
259 public String getContentType()
260 {
261 return null;
262 }
263
264
265
266
267 public ServletInputStream getInputStream() throws IOException
268 {
269 return null;
270 }
271
272
273
274
275 public String getLocalAddr()
276 {
277 return null;
278 }
279
280
281
282
283 public String getLocalName()
284 {
285 return null;
286 }
287
288
289
290
291 public int getLocalPort()
292 {
293 return 0;
294 }
295
296
297
298
299 public Locale getLocale()
300 {
301 return null;
302 }
303
304
305
306
307 public Enumeration getLocales()
308 {
309 return null;
310 }
311
312
313
314
315 public String getParameter(String arg0)
316 {
317 return null;
318 }
319
320
321
322
323 public Map getParameterMap()
324 {
325 return null;
326 }
327
328
329
330
331 public Enumeration getParameterNames()
332 {
333 return null;
334 }
335
336
337
338
339 public String[] getParameterValues(String arg0)
340 {
341 return new String[0];
342 }
343
344
345
346
347 public String getProtocol()
348 {
349 return null;
350 }
351
352
353
354
355 public BufferedReader getReader() throws IOException
356 {
357 return null;
358 }
359
360
361
362
363
364 @Deprecated
365 public String getRealPath(String arg0)
366 {
367 return null;
368 }
369
370
371
372
373 public String getRemoteAddr()
374 {
375 return null;
376 }
377
378
379
380
381 public String getRemoteHost()
382 {
383 return null;
384 }
385
386
387
388
389 public int getRemotePort()
390 {
391 return 0;
392 }
393
394
395
396
397 public RequestDispatcher getRequestDispatcher(String arg0)
398 {
399 return null;
400 }
401
402
403
404
405 public String getScheme()
406 {
407 return null;
408 }
409
410
411
412
413 public String getServerName()
414 {
415 return null;
416 }
417
418
419
420
421 public int getServerPort()
422 {
423 return 0;
424 }
425
426
427
428
429 public boolean isSecure()
430 {
431 return false;
432 }
433
434
435
436
437 public void removeAttribute(String arg0)
438 {
439 }
440
441
442
443
444 public void setAttribute(String arg0, Object arg1)
445 {
446 }
447
448
449
450
451 public void setCharacterEncoding(String arg0) throws UnsupportedEncodingException
452 {
453 }
454 }