Class 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.)
    • 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 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
      • 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
      • entrySet

        public Set entrySet()
        Specified by:
        entrySet in interface Map