org.apache.axis2.jaxws.handler
Class TransportHeadersAdapter

java.lang.Object
  extended by org.apache.axis2.jaxws.handler.TransportHeadersAdapter
All Implemented Interfaces:
java.util.Map

public class TransportHeadersAdapter
extends java.lang.Object
implements java.util.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 Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 void clear()
           
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value)
           
 java.util.Set entrySet()
           
 java.lang.Object get(java.lang.Object key)
           
static void install(MessageContext mc)
          Add the TransportHeadersAdapter as the property for TransportHeaders
 boolean isEmpty()
           
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 void putAll(java.util.Map t)
           
 java.lang.Object remove(java.lang.Object key)
           
 int size()
           
 java.lang.String toString()
           
 java.util.Collection values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Method Detail

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 java.util.Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface java.util.Map

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map

putAll

public void putAll(java.util.Map t)
Specified by:
putAll in interface java.util.Map

clear

public void clear()
Specified by:
clear in interface java.util.Map

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 Apache Web Services Project. All Rights Reserved.