Class AttachmentsAdapter

  • All Implemented Interfaces:
    Map<String,​DataHandler>

    public class AttachmentsAdapter
    extends Object
    implements Map<String,​DataHandler>
    The JAX-WS exposes attachment properties whose value is Map. The String is the content-id and DataHandler is the data handler representing the attachment. The JAX-WS MessageContext stores attachments in an Axiom Attachments object located on the JAX-WS Message. This class, AttachmentAdapter, 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 attachment information. To use this class, invoke the install method. This will create an AttachmentAdapter (if necessary) and install it on the property JAX-WS standard attachment property. (See BaseMessageContext.)