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