1 /* |
1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
67 public EndpointMessageContextImpl(Packet packet) { |
66 public EndpointMessageContextImpl(Packet packet) { |
68 this.packet = packet; |
67 this.packet = packet; |
69 } |
68 } |
70 |
69 |
71 @Override |
70 @Override |
|
71 @SuppressWarnings("element-type-mismatch") |
72 public Object get(Object key) { |
72 public Object get(Object key) { |
73 if (packet.supports(key)) { |
73 if (packet.supports(key)) { |
74 return packet.get(key); // strongly typed |
74 return packet.get(key); // strongly typed |
75 } |
75 } |
76 if (packet.getHandlerScopePropertyNames(true).contains(key)) { |
76 if (packet.getHandlerScopePropertyNames(true).contains(key)) { |
111 packet.invocationProperties.put(key, value); |
111 packet.invocationProperties.put(key, value); |
112 return null; |
112 return null; |
113 } |
113 } |
114 |
114 |
115 @Override |
115 @Override |
|
116 @SuppressWarnings("element-type-mismatch") |
116 public Object remove(Object key) { |
117 public Object remove(Object key) { |
117 if (packet.supports(key)) { |
118 if (packet.supports(key)) { |
118 return packet.remove(key); |
119 return packet.remove(key); |
119 } |
120 } |
120 Object old = packet.invocationProperties.get(key); |
121 Object old = packet.invocationProperties.get(key); |