1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.myfaces.context.portlet;
20
21 import java.util.Enumeration;
22 import java.util.Map;
23
24 import javax.portlet.PortletRequest;
25
26 import org.apache.myfaces.util.AbstractAttributeMap;
27
28
29
30
31
32
33
34
35 public class RequestMap extends AbstractAttributeMap
36 {
37 final PortletRequest _portletRequest;
38
39 RequestMap(PortletRequest portletRequest)
40 {
41 _portletRequest = portletRequest;
42 }
43
44 protected Object getAttribute(String key)
45 {
46 return _portletRequest.getAttribute(key);
47 }
48
49 protected void setAttribute(String key, Object value)
50 {
51 _portletRequest.setAttribute(key, value);
52 }
53
54 protected void removeAttribute(String key)
55 {
56 _portletRequest.removeAttribute(key);
57 }
58
59 protected Enumeration getAttributeNames()
60 {
61 return _portletRequest.getAttributeNames();
62 }
63
64 public void putAll(Map t)
65 {
66 throw new UnsupportedOperationException();
67 }
68
69
70 public void clear()
71 {
72 throw new UnsupportedOperationException();
73 }
74 }