1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.portletbridge.mock;
17  
18  import java.io.BufferedReader;
19  import java.io.IOException;
20  import java.io.InputStream;
21  import java.io.UnsupportedEncodingException;
22  import java.security.Principal;
23  import java.util.Enumeration;
24  import java.util.Locale;
25  import java.util.Map;
26  
27  import javax.portlet.ActionRequest;
28  import javax.portlet.PortalContext;
29  import javax.portlet.PortletMode;
30  import javax.portlet.PortletPreferences;
31  import javax.portlet.PortletSession;
32  import javax.portlet.WindowState;
33  
34  /***
35   * @author jmccrindle
36   */
37  public class MockActionRequest implements ActionRequest {
38  
39      /***
40       * 
41       */
42      public MockActionRequest() {
43          super();
44      }
45  
46      /* (non-Javadoc)
47       * @see javax.portlet.ActionRequest#getPortletInputStream()
48       */
49      public InputStream getPortletInputStream() throws IOException {
50          // TODO Auto-generated method stub
51          return null;
52      }
53  
54      /* (non-Javadoc)
55       * @see javax.portlet.ActionRequest#setCharacterEncoding(java.lang.String)
56       */
57      public void setCharacterEncoding(String arg0) throws UnsupportedEncodingException {
58          // TODO Auto-generated method stub
59          
60      }
61  
62      /* (non-Javadoc)
63       * @see javax.portlet.ActionRequest#getReader()
64       */
65      public BufferedReader getReader() throws UnsupportedEncodingException, IOException {
66          // TODO Auto-generated method stub
67          return null;
68      }
69  
70      /* (non-Javadoc)
71       * @see javax.portlet.ActionRequest#getCharacterEncoding()
72       */
73      public String getCharacterEncoding() {
74          // TODO Auto-generated method stub
75          return null;
76      }
77  
78      /* (non-Javadoc)
79       * @see javax.portlet.ActionRequest#getContentType()
80       */
81      public String getContentType() {
82          // TODO Auto-generated method stub
83          return null;
84      }
85  
86      /* (non-Javadoc)
87       * @see javax.portlet.ActionRequest#getContentLength()
88       */
89      public int getContentLength() {
90          // TODO Auto-generated method stub
91          return 0;
92      }
93  
94      /* (non-Javadoc)
95       * @see javax.portlet.PortletRequest#isWindowStateAllowed(javax.portlet.WindowState)
96       */
97      public boolean isWindowStateAllowed(WindowState arg0) {
98          // TODO Auto-generated method stub
99          return false;
100     }
101 
102     /* (non-Javadoc)
103      * @see javax.portlet.PortletRequest#isPortletModeAllowed(javax.portlet.PortletMode)
104      */
105     public boolean isPortletModeAllowed(PortletMode arg0) {
106         // TODO Auto-generated method stub
107         return false;
108     }
109 
110     /* (non-Javadoc)
111      * @see javax.portlet.PortletRequest#getPortletMode()
112      */
113     public PortletMode getPortletMode() {
114         // TODO Auto-generated method stub
115         return null;
116     }
117 
118     /* (non-Javadoc)
119      * @see javax.portlet.PortletRequest#getWindowState()
120      */
121     public WindowState getWindowState() {
122         // TODO Auto-generated method stub
123         return null;
124     }
125 
126     /* (non-Javadoc)
127      * @see javax.portlet.PortletRequest#getPreferences()
128      */
129     public PortletPreferences getPreferences() {
130         // TODO Auto-generated method stub
131         return null;
132     }
133 
134     /* (non-Javadoc)
135      * @see javax.portlet.PortletRequest#getPortletSession()
136      */
137     public PortletSession getPortletSession() {
138         // TODO Auto-generated method stub
139         return null;
140     }
141 
142     /* (non-Javadoc)
143      * @see javax.portlet.PortletRequest#getPortletSession(boolean)
144      */
145     public PortletSession getPortletSession(boolean arg0) {
146         // TODO Auto-generated method stub
147         return null;
148     }
149 
150     /* (non-Javadoc)
151      * @see javax.portlet.PortletRequest#getProperty(java.lang.String)
152      */
153     public String getProperty(String arg0) {
154         // TODO Auto-generated method stub
155         return null;
156     }
157 
158     /* (non-Javadoc)
159      * @see javax.portlet.PortletRequest#getProperties(java.lang.String)
160      */
161     public Enumeration getProperties(String arg0) {
162         // TODO Auto-generated method stub
163         return null;
164     }
165 
166     /* (non-Javadoc)
167      * @see javax.portlet.PortletRequest#getPropertyNames()
168      */
169     public Enumeration getPropertyNames() {
170         // TODO Auto-generated method stub
171         return null;
172     }
173 
174     /* (non-Javadoc)
175      * @see javax.portlet.PortletRequest#getPortalContext()
176      */
177     public PortalContext getPortalContext() {
178         // TODO Auto-generated method stub
179         return null;
180     }
181 
182     /* (non-Javadoc)
183      * @see javax.portlet.PortletRequest#getAuthType()
184      */
185     public String getAuthType() {
186         // TODO Auto-generated method stub
187         return null;
188     }
189 
190     /* (non-Javadoc)
191      * @see javax.portlet.PortletRequest#getContextPath()
192      */
193     public String getContextPath() {
194         // TODO Auto-generated method stub
195         return null;
196     }
197 
198     /* (non-Javadoc)
199      * @see javax.portlet.PortletRequest#getRemoteUser()
200      */
201     public String getRemoteUser() {
202         // TODO Auto-generated method stub
203         return null;
204     }
205 
206     /* (non-Javadoc)
207      * @see javax.portlet.PortletRequest#getUserPrincipal()
208      */
209     public Principal getUserPrincipal() {
210         // TODO Auto-generated method stub
211         return null;
212     }
213 
214     /* (non-Javadoc)
215      * @see javax.portlet.PortletRequest#isUserInRole(java.lang.String)
216      */
217     public boolean isUserInRole(String arg0) {
218         // TODO Auto-generated method stub
219         return false;
220     }
221 
222     /* (non-Javadoc)
223      * @see javax.portlet.PortletRequest#getAttribute(java.lang.String)
224      */
225     public Object getAttribute(String arg0) {
226         // TODO Auto-generated method stub
227         return null;
228     }
229 
230     /* (non-Javadoc)
231      * @see javax.portlet.PortletRequest#getAttributeNames()
232      */
233     public Enumeration getAttributeNames() {
234         // TODO Auto-generated method stub
235         return null;
236     }
237 
238     /* (non-Javadoc)
239      * @see javax.portlet.PortletRequest#getParameter(java.lang.String)
240      */
241     public String getParameter(String arg0) {
242         // TODO Auto-generated method stub
243         return null;
244     }
245 
246     /* (non-Javadoc)
247      * @see javax.portlet.PortletRequest#getParameterNames()
248      */
249     public Enumeration getParameterNames() {
250         // TODO Auto-generated method stub
251         return null;
252     }
253 
254     /* (non-Javadoc)
255      * @see javax.portlet.PortletRequest#getParameterValues(java.lang.String)
256      */
257     public String[] getParameterValues(String arg0) {
258         // TODO Auto-generated method stub
259         return null;
260     }
261 
262     /* (non-Javadoc)
263      * @see javax.portlet.PortletRequest#getParameterMap()
264      */
265     public Map getParameterMap() {
266         // TODO Auto-generated method stub
267         return null;
268     }
269 
270     /* (non-Javadoc)
271      * @see javax.portlet.PortletRequest#isSecure()
272      */
273     public boolean isSecure() {
274         // TODO Auto-generated method stub
275         return false;
276     }
277 
278     /* (non-Javadoc)
279      * @see javax.portlet.PortletRequest#setAttribute(java.lang.String, java.lang.Object)
280      */
281     public void setAttribute(String arg0, Object arg1) {
282         // TODO Auto-generated method stub
283         
284     }
285 
286     /* (non-Javadoc)
287      * @see javax.portlet.PortletRequest#removeAttribute(java.lang.String)
288      */
289     public void removeAttribute(String arg0) {
290         // TODO Auto-generated method stub
291         
292     }
293 
294     /* (non-Javadoc)
295      * @see javax.portlet.PortletRequest#getRequestedSessionId()
296      */
297     public String getRequestedSessionId() {
298         // TODO Auto-generated method stub
299         return null;
300     }
301 
302     /* (non-Javadoc)
303      * @see javax.portlet.PortletRequest#isRequestedSessionIdValid()
304      */
305     public boolean isRequestedSessionIdValid() {
306         // TODO Auto-generated method stub
307         return false;
308     }
309 
310     /* (non-Javadoc)
311      * @see javax.portlet.PortletRequest#getResponseContentType()
312      */
313     public String getResponseContentType() {
314         // TODO Auto-generated method stub
315         return null;
316     }
317 
318     /* (non-Javadoc)
319      * @see javax.portlet.PortletRequest#getResponseContentTypes()
320      */
321     public Enumeration getResponseContentTypes() {
322         // TODO Auto-generated method stub
323         return null;
324     }
325 
326     /* (non-Javadoc)
327      * @see javax.portlet.PortletRequest#getLocale()
328      */
329     public Locale getLocale() {
330         // TODO Auto-generated method stub
331         return null;
332     }
333 
334     /* (non-Javadoc)
335      * @see javax.portlet.PortletRequest#getLocales()
336      */
337     public Enumeration getLocales() {
338         // TODO Auto-generated method stub
339         return null;
340     }
341 
342     /* (non-Javadoc)
343      * @see javax.portlet.PortletRequest#getScheme()
344      */
345     public String getScheme() {
346         // TODO Auto-generated method stub
347         return null;
348     }
349 
350     /* (non-Javadoc)
351      * @see javax.portlet.PortletRequest#getServerName()
352      */
353     public String getServerName() {
354         // TODO Auto-generated method stub
355         return null;
356     }
357 
358     /* (non-Javadoc)
359      * @see javax.portlet.PortletRequest#getServerPort()
360      */
361     public int getServerPort() {
362         // TODO Auto-generated method stub
363         return 0;
364     }
365 
366 }