1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.myfaces.webapp.filter.portlet;
20
21 import java.io.BufferedReader;
22 import java.io.IOException;
23 import java.io.InputStream;
24 import java.io.UnsupportedEncodingException;
25
26 import javax.portlet.ActionRequest;
27 import javax.portlet.PortletRequest;
28
29
30
31
32
33
34
35
36
37
38
39
40 public class ActionRequestWrapper extends PortletRequestWrapper
41 implements ActionRequest
42 {
43
44 public ActionRequestWrapper(PortletRequest request)
45 {
46 super(request);
47 }
48
49 private ActionRequest _getActionRequest()
50 {
51 return (ActionRequest)super.getRequest();
52 }
53
54 public String getCharacterEncoding()
55 {
56 return _getActionRequest().getCharacterEncoding();
57 }
58
59 public int getContentLength()
60 {
61 return _getActionRequest().getContentLength();
62 }
63
64 public String getContentType()
65 {
66 return _getActionRequest().getContentType();
67 }
68
69 public InputStream getPortletInputStream() throws IOException
70 {
71 return _getActionRequest().getPortletInputStream();
72 }
73
74 public BufferedReader getReader() throws UnsupportedEncodingException,
75 IOException
76 {
77 return _getActionRequest().getReader();
78 }
79
80 public void setCharacterEncoding(String s)
81 throws UnsupportedEncodingException
82 {
83 _getActionRequest().setCharacterEncoding(s);
84 }
85
86 }