Class HeaderImpl

    • Field Detail

      • MUST_UNDERSTAND_ONLY

        protected static final boolean MUST_UNDERSTAND_ONLY
        See Also:
        Constant Field Values
    • Method Detail

      • getNotUnderstoodName

        protected abstract NameImpl getNotUnderstoodName()
      • getUpgradeName

        protected abstract NameImpl getUpgradeName()
      • getSupportedEnvelopeName

        protected abstract NameImpl getSupportedEnvelopeName()
      • examineHeaderElements

        public Iterator<SOAPHeaderElement> examineHeaderElements​(String actor)
        Description copied from interface: SOAPHeader
        Returns an Iterator over all the SOAPHeaderElement objects in this SOAPHeader object that have the specified actor. An actor is a global attribute that indicates the intermediate parties that should process a message before it reaches its ultimate receiver. An actor receives the message and processes it before sending it on 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, it is sent to the ultimate receiver along with the message body.

        In SOAP 1.2 the env:actor attribute is replaced by the env:role attribute, but with essentially the same semantics.

        Specified by:
        examineHeaderElements in interface SOAPHeader
        Parameters:
        actor - a String giving the URI of the actor / role for which to search
        Returns:
        an Iterator object over all the SOAPHeaderElement objects that contain the specified actor / role
        See Also:
        SOAPHeader.extractHeaderElements(java.lang.String), SOAPConstants.URI_SOAP_ACTOR_NEXT
      • extractHeaderElements

        public Iterator<SOAPHeaderElement> extractHeaderElements​(String actor)
        Description copied from interface: SOAPHeader
        Returns an Iterator over all the SOAPHeaderElement objects in this SOAPHeader object that have the specified actor and detaches them from this SOAPHeader object.

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

        In SOAP 1.2 the env:actor attribute is replaced by the env:role attribute, but with essentially the same semantics.

        Specified by:
        extractHeaderElements in interface SOAPHeader
        Parameters:
        actor - a String giving the URI of the actor / role for which to search
        Returns:
        an Iterator object over all the SOAPHeaderElement objects that contain the specified actor / role
        See Also:
        SOAPHeader.examineHeaderElements(java.lang.String), SOAPConstants.URI_SOAP_ACTOR_NEXT
      • addChildElement

        public SOAPElement addChildElement​(String localName)
                                    throws SOAPException
        Description copied from interface: SOAPElement
        Creates a new SOAPElement object initialized with the specified local name and adds the new element to this SOAPElement object. The new SOAPElement inherits any in-scope default namespace.
        Specified by:
        addChildElement in interface SOAPElement
        Overrides:
        addChildElement in class ElementImpl
        Parameters:
        localName - a String giving the local name for the element
        Returns:
        the new SOAPElement object that was created
        Throws:
        SOAPException - if there is an error in creating the SOAPElement object
      • addUpgradeHeaderElement

        public SOAPHeaderElement addUpgradeHeaderElement​(Iterator<String> supportedSoapUris)
                                                  throws SOAPException
        Description copied from interface: SOAPHeader
        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 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:
        SOAPException - if a SOAP error occurs.
      • addUpgradeHeaderElement

        public SOAPHeaderElement addUpgradeHeaderElement​(String supportedSoapUri)
                                                  throws SOAPException
        Description copied from interface: SOAPHeader
        Creates a new Upgrade SOAPHeaderElement object initialized with the specified supported SOAP URI 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 SOAPHeader
        Parameters:
        supportedSoapUri - the URI of SOAP the version that is supported.
        Returns:
        the new SOAPHeaderElement object that was inserted into this SOAPHeader object
        Throws:
        SOAPException - if a SOAP error occurs.
      • addUpgradeHeaderElement

        public SOAPHeaderElement addUpgradeHeaderElement​(String[] supportedSoapUris)
                                                  throws SOAPException
        Description copied from interface: SOAPHeader
        Creates a new Upgrade SOAPHeaderElement object initialized with the specified array 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 SOAPHeader
        Parameters:
        supportedSoapUris - an array of the URIs of SOAP versions supported.
        Returns:
        the new SOAPHeaderElement object that was inserted into this SOAPHeader object
        Throws:
        SOAPException - if a SOAP error occurs.
      • setElementQName

        public SOAPElement setElementQName​(QName newName)
                                    throws SOAPException
        Description copied from interface: SOAPElement
        Changes the name of this Element to newName if possible. SOAP Defined elements such as SOAPEnvelope, SOAPHeader, SOAPBody etc. cannot have their names changed using this method. Any attempt to do so will result in a SOAPException being thrown.

        Callers should not rely on the element instance being renamed as is. Implementations could end up copying the content of the SOAPElement to a renamed instance.

        Specified by:
        setElementQName in interface SOAPElement
        Overrides:
        setElementQName in class ElementImpl
        Parameters:
        newName - the new name for the Element.
        Returns:
        The renamed Node
        Throws:
        SOAPException - if changing the name of this Element is not allowed.