1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.struts.chain.contexts;
22
23 import org.apache.commons.chain.Context;
24
25 import java.util.Collection;
26 import java.util.Map;
27 import java.util.Set;
28
29
30
31
32
33
34
35
36
37 public class ContextWrapper implements Context {
38 private Context base;
39
40
41
42
43
44
45 public ContextWrapper(Context context) {
46 this.base = context;
47 }
48
49
50
51
52
53
54 protected Context getBaseContext() {
55 return this.base;
56 }
57
58
59
60
61 public Set<Map.Entry<String, Object>> entrySet() {
62 return this.base.entrySet();
63 }
64
65 public Set<String> keySet() {
66 return this.base.keySet();
67 }
68
69 public Collection<Object> values() {
70 return this.base.values();
71 }
72
73 public void clear() {
74 this.base.clear();
75 }
76
77 public void putAll(Map<? extends String, ? extends Object> map) {
78
79 this.base.putAll(map);
80 }
81
82 public Object remove(Object key) {
83 return this.base.remove(key);
84 }
85
86 public Object put(String key, Object value) {
87
88 return this.base.put(key, value);
89 }
90
91 public Object get(Object key) {
92 return this.base.get(key);
93 }
94
95 public boolean containsValue(Object o) {
96 return this.base.containsValue(o);
97 }
98
99 public boolean containsKey(Object o) {
100 return this.base.containsKey(o);
101 }
102
103 public boolean isEmpty() {
104 return this.base.isEmpty();
105 }
106
107 public int size() {
108 return this.base.size();
109 }
110 }