Class SOAP11HeaderImpl

  • All Implemented Interfaces:
    org.apache.axiom.om.impl.OMContainerEx, org.apache.axiom.om.impl.OMNodeEx, org.apache.axiom.om.OMConstants, org.apache.axiom.om.OMContainer, org.apache.axiom.om.OMElement, org.apache.axiom.om.OMNode, org.apache.axiom.om.OMSerializable, org.apache.axiom.soap.SOAPHeader

    public class SOAP11HeaderImpl
    extends SOAPHeaderImpl
    • Constructor Detail

      • SOAP11HeaderImpl

        public SOAP11HeaderImpl​(org.apache.axiom.soap.SOAPFactory factory)
                         throws org.apache.axiom.soap.SOAPProcessingException
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • SOAP11HeaderImpl

        public SOAP11HeaderImpl​(org.apache.axiom.soap.SOAPEnvelope envelope,
                                org.apache.axiom.soap.SOAPFactory factory)
                         throws org.apache.axiom.soap.SOAPProcessingException
        Parameters:
        envelope -
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • SOAP11HeaderImpl

        public SOAP11HeaderImpl​(org.apache.axiom.soap.SOAPEnvelope envelope,
                                org.apache.axiom.om.OMXMLParserWrapper builder,
                                org.apache.axiom.soap.SOAPFactory factory)
        Constructor SOAPHeaderImpl
        Parameters:
        envelope -
        builder -
    • Method Detail

      • addHeaderBlock

        public org.apache.axiom.soap.SOAPHeaderBlock addHeaderBlock​(String localName,
                                                                    org.apache.axiom.om.OMNamespace ns)
                                                             throws org.apache.axiom.om.OMException
        Description copied from class: SOAPHeaderImpl
        Creates a new SOAPHeaderBlock object initialized with the specified name and adds it to this SOAPHeader object.
        Specified by:
        addHeaderBlock in interface org.apache.axiom.soap.SOAPHeader
        Specified by:
        addHeaderBlock in class SOAPHeaderImpl
        Returns:
        the new SOAPHeaderBlock object that was inserted into this SOAPHeader object
        Throws:
        org.apache.axiom.om.OMException
      • extractHeaderBlocks

        public Iterator extractHeaderBlocks​(String role)
        Description copied from class: SOAPHeaderImpl
        Returns a list of all the SOAPHeaderBlock objects in this SOAPHeader object that have the the specified role and detaches them from this SOAPHeader object.

        This method allows an role 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 role.

        Specified by:
        extractHeaderBlocks in interface org.apache.axiom.soap.SOAPHeader
        Specified by:
        extractHeaderBlocks in class SOAPHeaderImpl
        Parameters:
        role - a String giving the URI of the role for which to search
        Returns:
        an Iterator object over all the SOAPHeaderBlock objects that contain the specified role
        See Also:
        examineHeaderBlocks(java.lang.String)