Class RelatesToHeader

  • All Implemented Interfaces:
    Header

    public final class RelatesToHeader
    extends StringHeader
    WS-Addressing <RelatesTo> header. Used for outbound only.
    Author:
    Arun Gupta
    • Field Detail

    • Constructor Detail

      • RelatesToHeader

        public RelatesToHeader​(QName name,
                               String messageId,
                               String type)
      • RelatesToHeader

        public RelatesToHeader​(QName name,
                               String mid)
    • Method Detail

      • getType

        public String getType()
      • writeTo

        public void writeTo​(javax.xml.soap.SOAPMessage saaj)
                     throws javax.xml.soap.SOAPException
        Description copied from interface: Header
        Writes out the header to the given SOAPMessage.

        Sometimes a Message needs to produce itself as SOAPMessage, in which case each header needs to turn itself into a header.

        Specified by:
        writeTo in interface Header
        Overrides:
        writeTo in class StringHeader
        Throws:
        javax.xml.soap.SOAPException - if the operation fails for some reason. This leaves the writer to an undefined state.