KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > test > mocks > portlet > MockActionRequest


1 /**
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  **/

5 package org.exoplatform.test.mocks.portlet;
6
7 import javax.portlet.ActionRequest;
8
9 /**
10  * Created by The eXo Platform SARL
11  * Author : Tuan Nguyen
12  * tuan08@users.sourceforge.net
13  * Date: Jul 27, 2003
14  * Time: 2:13:09 AM
15  */

16 public class MockActionRequest extends MockPortletRequest implements ActionRequest {
17
18   public MockActionRequest() {
19     super();
20   }
21
22   public java.io.InputStream JavaDoc getPortletInputStream () throws java.io.IOException JavaDoc {
23     return null ;
24   }
25
26
27   public void setCharacterEncoding(String JavaDoc enc) throws java.io.UnsupportedEncodingException JavaDoc {
28     
29   }
30
31   public java.io.BufferedReader JavaDoc getReader() throws java.io.UnsupportedEncodingException JavaDoc, java.io.IOException JavaDoc {
32     return null ;
33   }
34     
35   public java.lang.String JavaDoc getCharacterEncoding() {
36     return "default" ;
37   }
38
39   public java.lang.String JavaDoc getContentType() {
40     return "txt/html" ;
41   }
42
43   public int getContentLength() {
44     return 0 ;
45   }
46 }
Popular Tags