Class SAAJHeader

java.lang.Object
com.sun.xml.ws.message.AbstractHeaderImpl
com.sun.xml.ws.message.DOMHeader<jakarta.xml.soap.SOAPHeaderElement>
com.sun.xml.ws.message.saaj.SAAJHeader
All Implemented Interfaces:
Header

public final class SAAJHeader extends DOMHeader<jakarta.xml.soap.SOAPHeaderElement>
Header for SOAPHeaderElement.
Author:
Vivek Pandey
  • Constructor Details

    • SAAJHeader

      public SAAJHeader(jakarta.xml.soap.SOAPHeaderElement header)
  • Method Details

    • getRole

      @NotNull public String getRole(@NotNull SOAPVersion soapVersion)
      Description copied from interface: Header
      Gets the value of the soap:role attribute (or soap:actor for SOAP 1.1).

      If the attribute is omitted, the value defaults to SOAPVersion.implicitRole.

      Specified by:
      getRole in interface Header
      Overrides:
      getRole in class AbstractHeaderImpl
      Parameters:
      soapVersion - The caller specifies the SOAP version that the pipeline is working against. Often each Header implementation already knows the SOAP version anyway, but this allows some Headers to avoid keeping it. That's why this redundant parameter is passed in.
      Returns:
      never null. This string need not be interned.