Class SwaRefAdapter


  • public final class SwaRefAdapter
    extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,​jakarta.activation.DataHandler>
    XmlAdapter that binds the value as a SOAP attachment.

    On the user classes the SwA handling is done by using the XmlAttachmentRef annotation, but internally we treat it as a XmlJavaTypeAdapter with this adapter class. This is true with both XJC and the runtime.

    the model builder code and the code generator does the conversion and shield the rest of the RI from this mess. Also see @see http://webservices.xml.com/pub/a/ws/2003/09/16/wsbp.html?page=2.

    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • SwaRefAdapter

        public SwaRefAdapter()
    • Method Detail

      • unmarshal

        public jakarta.activation.DataHandler unmarshal​(String cid)
        Specified by:
        unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,​jakarta.activation.DataHandler>
      • marshal

        public String marshal​(jakarta.activation.DataHandler data)
        Specified by:
        marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,​jakarta.activation.DataHandler>