This project has retired. For details please refer to its Attic page.
MockMessageContext xref
View Javadoc
1   /*
2    * Copyright 2013 The Apache Software Foundation.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.apache.juddi.auth;
18  
19  import java.util.Collection;
20  import java.util.HashMap;
21  import java.util.Map;
22  import java.util.Set;
23  import javax.xml.ws.handler.MessageContext;
24  
25  /**
26   *
27   * @author Alex O'Ree
28   */
29  public class MockMessageContext implements MessageContext{
30  
31      @Override
32      public void setScope(String name, Scope scope) {
33          throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
34      }
35  
36      @Override
37      public Scope getScope(String name) {
38          throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
39      }
40  
41      @Override
42      public int size() {
43          throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
44      }
45  
46      @Override
47      public boolean isEmpty() {
48          throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
49      }
50  
51      @Override
52      public boolean containsKey(Object key) {
53          throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
54      }
55  
56      @Override
57      public boolean containsValue(Object value) {
58          throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
59      }
60  
61      @Override
62      public Object get(Object key) {
63         return map.get(key);
64      }
65      Map map = new HashMap();
66  
67      @Override
68      public Object put(String key, Object value) {
69          return map.put(key, value);
70      }
71  
72      @Override
73      public Object remove(Object key) {
74         return  map.remove(key);
75      }
76  
77      @Override
78      public void putAll(Map<? extends String, ? extends Object> m) {
79          throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
80      }
81  
82      @Override
83      public void clear() {
84          throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
85      }
86  
87      @Override
88      public Set<String> keySet() {
89          throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
90      }
91  
92      @Override
93      public Collection<Object> values() {
94          throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
95      }
96  
97      @Override
98      public Set<Entry<String, Object>> entrySet() {
99          throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
100     }
101 
102 }