View Javadoc
1   /**
2    * This Source Code Form is subject to the terms of the Mozilla Public
3    * License, v. 2.0. If a copy of the MPL was not distributed with this
4    * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5    *
6    * If it is not possible or desirable to put the notice in a particular
7    * file, then You may include the notice in a location (such as a LICENSE
8    * file in a relevant directory) where a recipient would be likely to look
9    * for such a notice.
10  
11   * 
12   */
13   
14  /*  ---------------------------------------------------------------------------
15   *  U.S. Government, Department of the Army
16   *  Army Materiel Command
17   *  Research Development Engineering Command
18   *  Communications Electronics Research Development and Engineering Center
19   *  ---------------------------------------------------------------------------
20   */
21  package org.miloss.fgsms.test;
22  import java.util.*;
23  import javax.xml.ws.handler.MessageContext;
24  
25  /**
26   *
27   * @author AO
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      }