Class SOAPHeaderElementImpl

    • Constructor Detail

      • SOAPHeaderElementImpl

        public SOAPHeaderElementImpl​(SOAPHeaderBlock element)
        Parameters:
        element -
    • Method Detail

      • setActor

        public void setActor​(String actorURI)
        Sets the actor associated with this SOAPHeaderElement object to the specified actor. The default value of an actor is: SOAPConstants.URI_SOAP_ACTOR_NEXT
        Specified by:
        setActor in interface SOAPHeaderElement
        Parameters:
        actorURI - a String giving the URI of the actor to set
        Throws:
        IllegalArgumentException - if there is a problem in setting the actor.
        See Also:
        getActor()
      • setMustUnderstand

        public void setMustUnderstand​(boolean mustUnderstand)
        Sets the mustUnderstand attribute for this SOAPHeaderElement object to be on or off.

        If the mustUnderstand attribute is on, the actor who receives the SOAPHeaderElement must process it correctly. This ensures, for example, that if the SOAPHeaderElement object modifies the message, that the message is being modified correctly.

        Specified by:
        setMustUnderstand in interface SOAPHeaderElement
        Parameters:
        mustUnderstand - true to set the mustUnderstand attribute on; false to turn if off
        Throws:
        IllegalArgumentException - if there is a problem in setting the actor.
        See Also:
        getMustUnderstand()
      • getMustUnderstand

        public boolean getMustUnderstand()
        Returns whether the mustUnderstand attribute for this SOAPHeaderElement object is turned on.
        Specified by:
        getMustUnderstand in interface SOAPHeaderElement
        Returns:
        true if the mustUnderstand attribute of this SOAPHeaderElement object is turned on; false otherwise
      • setRole

        public void setRole​(String uri)
                     throws SOAPException
        Sets the Role associated with this SOAPHeaderElement object to the specified Role.
        Specified by:
        setRole in interface SOAPHeaderElement
        Parameters:
        uri - - the URI of the Role
        Throws:
        SOAPException - - if there is an error in setting the role java.lang.UnsupportedOperationException - if this message does not support the SOAP 1.2 concept of Fault Role.
      • setRelay

        public void setRelay​(boolean flag)
                      throws SOAPException
        Sets the relay attribute for this SOAPHeaderElement to be either true or false. The SOAP relay attribute is set to true to indicate that the SOAP header block must be relayed by any node that is targeted by the header block but not actually process it. This attribute is ignored on header blocks whose mustUnderstand attribute is set to true or that are targeted at the ultimate reciever (which is the default). The default value of this attribute is false.
        Specified by:
        setRelay in interface SOAPHeaderElement
        Parameters:
        relay - - the new value of the relay attribute
        Throws:
        SOAPException - - if there is a problem in setting the relay attribute. java.lang.UnsupportedOperationException - if this message does not support the SOAP 1.2 concept of Relay attribute.