public interface SoapHeaderElement extends SoapElement
SoapHeaderElement
s are
contained in a SoapHeader
.SoapHeader
Modifier and Type | Method and Description |
---|---|
String |
getActorOrRole()
Returns the actor or role for this header element.
|
boolean |
getMustUnderstand()
Indicates whether the
mustUnderstand attribute for this header element is set. |
Result |
getResult()
Returns a
Result that allows for writing to the contents of the header element. |
String |
getText()
Returns the text content of this header element, if any.
|
void |
setActorOrRole(String actorOrRole)
Sets the actor or role for this header element.
|
void |
setMustUnderstand(boolean mustUnderstand)
Sets the
mustUnderstand attribute for this header element. |
void |
setText(String content)
Sets the text content of this header element.
|
addAttribute, addNamespaceDeclaration, getAllAttributes, getAttributeValue, getName, getSource, removeAttribute
String getActorOrRole() throws SoapHeaderException
actor
attribute; in SOAP 1.2, the role
attribute.SoapHeaderException
void setActorOrRole(String actorOrRole) throws SoapHeaderException
actor
attribute being set; in SOAP 1.2, a actorOrRole
attribute.actorOrRole
- the actorOrRole valueSoapHeaderException
boolean getMustUnderstand() throws SoapHeaderException
mustUnderstand
attribute for this header element is set.true
if the mustUnderstand
attribute is set; false
otherwiseSoapHeaderException
void setMustUnderstand(boolean mustUnderstand) throws SoapHeaderException
mustUnderstand
attribute for this header element. If the attribute is on, the role who
receives the header must process it.mustUnderstand
- true
to set the mustUnderstand
attribute on; false
to turn it offSoapHeaderException
Result getResult() throws SoapHeaderException
Result
that allows for writing to the contents of the header element.SoapHeaderException
String getText()
void setText(String content)
content
- the new text content of this header element