1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.miloss.fgsms.test;
22 import java.util.*;
23 import javax.xml.ws.handler.MessageContext;
24
25
26
27
28
29 public class MyMessageContext implements MessageContext {
30
31 public MyMessageContext() {
32 map = new HashMap();
33 }
34
35 public void setScope(String name, Scope scope) {
36 }
37
38 public Scope getScope(String name) {
39 return null;
40 }
41
42 public int size() {
43 return map.size();
44 }
45
46 public boolean isEmpty() {
47 return map.isEmpty();
48 }
49
50 public boolean containsKey(Object key) {
51 return map.containsKey(key);
52 }
53
54 public boolean containsValue(Object value) {
55 return map.containsValue(value);
56 }
57
58 public Object get(Object key) {
59 return map.get(key);
60 }
61 private Map map = null;
62
63 public Object put(String key, Object value) {
64 return map.put(key, value);
65 }
66
67 public Object remove(Object key) {
68 return map.remove(key);
69 }
70
71 public void putAll(Map<? extends String, ? extends Object> m) {
72 map.putAll(map);
73 }
74
75 public void clear() {
76 map.clear();
77 }
78
79 public Set<String> keySet() {
80 return map.entrySet();
81 }
82
83 public Collection<Object> values() {
84 return map.values();
85 }
86
87 public Set<Entry<String, Object>> entrySet() {
88 return map.entrySet();
89 }
90 }