Class RelatesToHeader

All Implemented Interfaces:
Header

public final class RelatesToHeader extends StringHeader
WS-Addressing <RelatesTo$gt; header. Used for outbound only.
Author:
Arun Gupta
  • Field Details

    • type

      protected String type
  • Constructor Details

    • RelatesToHeader

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

      public RelatesToHeader(QName name, String mid)
  • Method Details

    • getType

      public String getType()
    • writeTo

      public void writeTo(XMLStreamWriter w) throws XMLStreamException
      Description copied from interface: Header
      Writes out the header as a fragment.
      Specified by:
      writeTo in interface Header
      Overrides:
      writeTo in class StringHeader
      Throws:
      XMLStreamException - if the operation fails for some reason. This leaves the writer to an undefined state.
    • writeTo

      public void writeTo(jakarta.xml.soap.SOAPMessage saaj) throws jakarta.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:
      jakarta.xml.soap.SOAPException - if the operation fails for some reason. This leaves the writer to an undefined state.