org.apache.axis2.jaxws.handler
Class TransportHeadersAdapter
java.lang.Object
org.apache.axis2.jaxws.handler.TransportHeadersAdapter
- All Implemented Interfaces:
- Map
public class TransportHeadersAdapter
- extends Object
- implements Map
The JAX-WS exposes transport properties whose value is Map>. The
String is the content-id and DataHandler is the data handler representing the TransportHeaders.
The JAX-WS MessageContext stores transport properties in an Map object located on the AXIS2
MessageContext.
This class, TransportHeadersAdapter, is an adapter between the Map>
interface needed by the properties and the actual implementation.
All useful function is delegated through the MessageContext,
so that we only have one copy of the information.
To use this class, invoke the install method. This will create an TransportHeadersAdapter
(if necessary) and install it on the property JAX-WS standard TransportHeaders properties.
(See BaseMessageContext.)
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
install
public static void install(MessageContext mc)
- Add the TransportHeadersAdapter as the property for TransportHeaders
- Parameters:
mc
- MessageContext
size
public int size()
- Specified by:
size
in interface Map
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Map
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Map
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interface Map
get
public Object get(Object key)
- Specified by:
get
in interface Map
put
public Object put(Object key,
Object value)
- Specified by:
put
in interface Map
remove
public Object remove(Object key)
- Specified by:
remove
in interface Map
putAll
public void putAll(Map t)
- Specified by:
putAll
in interface Map
clear
public void clear()
- Specified by:
clear
in interface Map
keySet
public Set keySet()
- Specified by:
keySet
in interface Map
values
public Collection values()
- Specified by:
values
in interface Map
entrySet
public Set entrySet()
- Specified by:
entrySet
in interface Map
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.