Class HeaderElementImpl

    • Field Detail

      • RELAY_ATTRIBUTE_LOCAL_NAME

        protected static final Name RELAY_ATTRIBUTE_LOCAL_NAME
      • MUST_UNDERSTAND_ATTRIBUTE_LOCAL_NAME

        protected static final Name MUST_UNDERSTAND_ATTRIBUTE_LOCAL_NAME
    • Method Detail

      • getActorAttributeName

        protected abstract NameImpl getActorAttributeName()
      • getRoleAttributeName

        protected abstract NameImpl getRoleAttributeName()
      • getMustunderstandAttributeName

        protected abstract NameImpl getMustunderstandAttributeName()
      • getMustunderstandAttributeValue

        protected abstract boolean getMustunderstandAttributeValue​(String str)
      • getMustunderstandLiteralValue

        protected abstract String getMustunderstandLiteralValue​(boolean mu)
      • getRelayAttributeName

        protected abstract NameImpl getRelayAttributeName()
      • getRelayAttributeValue

        protected abstract boolean getRelayAttributeValue​(String str)
      • getRelayLiteralValue

        protected abstract String getRelayLiteralValue​(boolean mu)
      • getActorOrRole

        protected abstract String getActorOrRole()
      • setRole

        public void setRole​(String roleUri)
                     throws SOAPException
        Description copied from interface: SOAPHeaderElement
        Sets the Role associated with this SOAPHeaderElement object to the specified Role.
        Specified by:
        setRole in interface SOAPHeaderElement
        Parameters:
        roleUri - the URI of the Role
        Throws:
        SOAPException - if there is an error in setting the role
      • getRole

        public String getRole()
        Description copied from interface: SOAPHeaderElement
        Returns the value of the Role attribute of this SOAPHeaderElement.
        Specified by:
        getRole in interface SOAPHeaderElement
        Returns:
        a String giving the URI of the Role
      • setMustUnderstand

        public void setMustUnderstand​(boolean mustUnderstand)
        Description copied from interface: SOAPHeaderElement
        Sets the mustUnderstand attribute for this SOAPHeaderElement object to be either true or false.

        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 to true; false to set it to false
        See Also:
        SOAPHeaderElement.getMustUnderstand(), SOAPHeaderElement.setRelay(boolean)
      • getMustUnderstand

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

        public void setRelay​(boolean relay)
                      throws SOAPException
        Description copied from interface: SOAPHeaderElement
        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.
        See Also:
        SOAPHeaderElement.setMustUnderstand(boolean), SOAPHeaderElement.getRelay()