Class SOAPHeaderImpl

java.lang.Object
org.apache.axis2.saaj.ProxyNode<T,S>
org.apache.axis2.saaj.NodeImpl<Element,T>
org.apache.axis2.saaj.SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>
org.apache.axis2.saaj.SOAPHeaderImpl
All Implemented Interfaces:
jakarta.xml.soap.Node, jakarta.xml.soap.SOAPElement, jakarta.xml.soap.SOAPHeader, Element, Node

public class SOAPHeaderImpl extends SOAPElementImpl<org.apache.axiom.soap.SOAPHeader> implements jakarta.xml.soap.SOAPHeader
  • Constructor Details

    • SOAPHeaderImpl

      public SOAPHeaderImpl(org.apache.axiom.soap.SOAPHeader header)
      Constructor
      Parameters:
      header -
  • Method Details

    • addChildElement

      public jakarta.xml.soap.SOAPElement addChildElement(String localName) throws jakarta.xml.soap.SOAPException
      Specified by:
      addChildElement in interface jakarta.xml.soap.SOAPElement
      Overrides:
      addChildElement in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>
      Throws:
      jakarta.xml.soap.SOAPException
    • addChildElement

      public jakarta.xml.soap.SOAPElement addChildElement(String localName, String prefix) throws jakarta.xml.soap.SOAPException
      Specified by:
      addChildElement in interface jakarta.xml.soap.SOAPElement
      Overrides:
      addChildElement in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>
      Throws:
      jakarta.xml.soap.SOAPException
    • addChildElement

      public jakarta.xml.soap.SOAPElement addChildElement(String localName, String prefix, String uri) throws jakarta.xml.soap.SOAPException
      Specified by:
      addChildElement in interface jakarta.xml.soap.SOAPElement
      Overrides:
      addChildElement in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>
      Throws:
      jakarta.xml.soap.SOAPException
    • addChildElement

      public jakarta.xml.soap.SOAPElement addChildElement(jakarta.xml.soap.Name name) throws jakarta.xml.soap.SOAPException
      Specified by:
      addChildElement in interface jakarta.xml.soap.SOAPElement
      Overrides:
      addChildElement in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>
      Throws:
      jakarta.xml.soap.SOAPException
    • addChildElement

      public jakarta.xml.soap.SOAPElement addChildElement(jakarta.xml.soap.SOAPElement soapElement) throws jakarta.xml.soap.SOAPException
      Specified by:
      addChildElement in interface jakarta.xml.soap.SOAPElement
      Overrides:
      addChildElement in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>
      Throws:
      jakarta.xml.soap.SOAPException
    • appendElement

      protected Element appendElement(Element child) throws jakarta.xml.soap.SOAPException
      Overrides:
      appendElement in class ProxyNode<Element,org.apache.axiom.soap.SOAPHeader>
      Throws:
      jakarta.xml.soap.SOAPException
    • addHeaderElement

      public jakarta.xml.soap.SOAPHeaderElement addHeaderElement(jakarta.xml.soap.Name name) throws jakarta.xml.soap.SOAPException
      Creates a new SOAPHeaderElement object initialized with the specified name and adds it to this SOAPHeader object.
      Specified by:
      addHeaderElement in interface jakarta.xml.soap.SOAPHeader
      Parameters:
      name - a Name object with the name of the new SOAPHeaderElement object
      Returns:
      the new SOAPHeaderElement object that was inserted into this SOAPHeader object
      Throws:
      jakarta.xml.soap.SOAPException - if a SOAP error occurs
    • examineHeaderElements

      public Iterator examineHeaderElements(String actor)
      Returns a list of all the SOAPHeaderElement objects in this SOAPHeader object that have the the specified actor. An actor is a global attribute that indicates the intermediate parties to whom the message should be sent. An actor receives the message and then sends it to the next actor. The default actor is the ultimate intended recipient for the message, so if no actor attribute is included in a SOAPHeader object, the message is sent to its ultimate destination.
      Specified by:
      examineHeaderElements in interface jakarta.xml.soap.SOAPHeader
      Parameters:
      actor - a String giving the URI of the actor for which to search
      Returns:
      an Iterator object over all the SOAPHeaderElement objects that contain the specified actor
      See Also:
    • extractHeaderElements

      public Iterator extractHeaderElements(String actor)
      Returns a list of all the SOAPHeaderElement objects in this SOAPHeader object that have the the specified actor and detaches them from this SOAPHeader object.

      This method allows an actor to process only the parts of the SOAPHeader object that apply to it and to remove them before passing the message on to the next actor.

      Specified by:
      extractHeaderElements in interface jakarta.xml.soap.SOAPHeader
      Parameters:
      actor - a String giving the URI of the actor for which to search
      Returns:
      an Iterator object over all the SOAPHeaderElement objects that contain the specified actor
      See Also:
    • examineMustUnderstandHeaderElements

      public Iterator examineMustUnderstandHeaderElements(String actor)
      Returns an Iterator over all the SOAPHeaderElement objects in this SOAPHeader object that have the specified actor and that have a MustUnderstand attribute whose value is equivalent to true.
      Specified by:
      examineMustUnderstandHeaderElements in interface jakarta.xml.soap.SOAPHeader
      Parameters:
      actor - a String giving the URI of the actor for which to search
      Returns:
      an Iterator object over all the SOAPHeaderElement objects that contain the specified actor and are marked as MustUnderstand
    • examineAllHeaderElements

      public Iterator examineAllHeaderElements()
      Returns an Iterator over all the SOAPHeaderElement objects in this SOAPHeader object.
      Specified by:
      examineAllHeaderElements in interface jakarta.xml.soap.SOAPHeader
      Returns:
      an Iterator object over all the SOAPHeaderElement objects contained by this SOAPHeader
    • extractAllHeaderElements

      public Iterator extractAllHeaderElements()
      Returns an Iterator over all the SOAPHeaderElement objects in this SOAPHeader object and detaches them from this SOAPHeader object.
      Specified by:
      extractAllHeaderElements in interface jakarta.xml.soap.SOAPHeader
      Returns:
      an Iterator object over all the SOAPHeaderElement objects contained by this SOAPHeader
    • addHeaderElement

      public jakarta.xml.soap.SOAPHeaderElement addHeaderElement(QName qname) throws jakarta.xml.soap.SOAPException
      Specified by:
      addHeaderElement in interface jakarta.xml.soap.SOAPHeader
      Throws:
      jakarta.xml.soap.SOAPException
    • addNotUnderstoodHeaderElement

      public jakarta.xml.soap.SOAPHeaderElement addNotUnderstoodHeaderElement(QName qname) throws jakarta.xml.soap.SOAPException
      Creates a new NotUnderstood SOAPHeaderElement object initialized with the specified name and adds it to this SOAPHeader object. This operation is supported only by SOAP 1.2
      Specified by:
      addNotUnderstoodHeaderElement in interface jakarta.xml.soap.SOAPHeader
      Parameters:
      name - - a QName object with the name of the SOAPHeaderElement object that was not understood.
      Returns:
      the new SOAPHeaderElement object that was inserted into this SOAPHeader object
      Throws:
      jakarta.xml.soap.SOAPException
    • addUpgradeHeaderElement

      public jakarta.xml.soap.SOAPHeaderElement addUpgradeHeaderElement(Iterator iterator) throws jakarta.xml.soap.SOAPException
      Creates a new Upgrade SOAPHeaderElement object initialized with the specified List of supported SOAP URIs and adds it to this SOAPHeader object. This operation is supported on both SOAP 1.1 and SOAP 1.2 header.
      Specified by:
      addUpgradeHeaderElement in interface jakarta.xml.soap.SOAPHeader
      Parameters:
      supportedSOAPURIs - - an Iterator object with the URIs of SOAP versions supported.
      Returns:
      the new SOAPHeaderElement object that was inserted into this SOAPHeader object
      Throws:
      jakarta.xml.soap.SOAPException - - if a SOAP error occurs.
    • addUpgradeHeaderElement

      public jakarta.xml.soap.SOAPHeaderElement addUpgradeHeaderElement(String[] as) throws jakarta.xml.soap.SOAPException
      Specified by:
      addUpgradeHeaderElement in interface jakarta.xml.soap.SOAPHeader
      Throws:
      jakarta.xml.soap.SOAPException
    • addUpgradeHeaderElement

      public jakarta.xml.soap.SOAPHeaderElement addUpgradeHeaderElement(String s) throws jakarta.xml.soap.SOAPException
      Specified by:
      addUpgradeHeaderElement in interface jakarta.xml.soap.SOAPHeader
      Throws:
      jakarta.xml.soap.SOAPException
    • addTextNode

      public jakarta.xml.soap.SOAPElement addTextNode(String text) throws jakarta.xml.soap.SOAPException
      Description copied from class: SOAPElementImpl
      Creates a new Text object initialized with the given String and adds it to this SOAPElement object.
      Specified by:
      addTextNode in interface jakarta.xml.soap.SOAPElement
      Overrides:
      addTextNode in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>
      Parameters:
      text - a String object with the textual content to be added
      Returns:
      the SOAPElement object into which the new Text object was inserted
      Throws:
      jakarta.xml.soap.SOAPException - if there is an error in creating the new Text object
    • getChildElements

      public Iterator getChildElements(jakarta.xml.soap.Name name)
      Specified by:
      getChildElements in interface jakarta.xml.soap.SOAPElement
      Overrides:
      getChildElements in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>
    • getChildElements

      public Iterator getChildElements()
      Description copied from class: SOAPElementImpl
      Returns an iterator over all the immediate content of this element. This includes Text objects as well as SOAPElement objects.
      Specified by:
      getChildElements in interface jakarta.xml.soap.SOAPElement
      Overrides:
      getChildElements in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>
      Returns:
      an iterator over Text and SOAPElement contained within this SOAPElement object