public class SOAPHeaderElement extends MessageElement implements SOAPHeaderElement
MessageElement.QNameAttr
Modifier and Type | Field and Description |
---|---|
protected String |
actor |
protected boolean |
mustUnderstand |
protected boolean |
processed |
protected boolean |
relay |
_isRoot, context, encodingStyle, endEventIndex, fixupDeserializer, href, id, log, message, namespaces, qNameAttrs, recorder, startContentsIndex, startEventIndex, typeQName
_isDirty, attributes, children, document, name, namespaceURI, parent, prefix, textRep
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Constructor and Description |
---|
SOAPHeaderElement(Element elem) |
SOAPHeaderElement(Name name) |
SOAPHeaderElement(QName qname) |
SOAPHeaderElement(QName qname,
Object value) |
SOAPHeaderElement(String namespace,
String localPart) |
SOAPHeaderElement(String namespace,
String localPart,
Object value) |
SOAPHeaderElement(String namespace,
String localPart,
String prefix,
Attributes attributes,
DeserializationContext context) |
Modifier and Type | Method and Description |
---|---|
String |
getActor()
Returns the uri of the actor associated with this
SOAPHeaderElement object. |
NamedNodeMap |
getAttributes()
A
NamedNodeMap containing the attributes of this node (if
it is an Element ) or null otherwise. |
boolean |
getMustUnderstand()
Returns whether the mustUnderstand attribute for this
SOAPHeaderElement object is turned on. |
boolean |
getRelay() |
String |
getRole() |
boolean |
isProcessed() |
protected void |
outputImpl(SerializationContext context)
Subclasses can override
|
void |
setActor(String a)
Sets the actor associated with this
SOAPHeaderElement object to the specified actor. |
void |
setMustUnderstand(boolean b)
Sets the mustUnderstand attribute for this
SOAPHeaderElement object to be on or off. |
void |
setParentElement(SOAPElement parent)
Sets the parent of this
Node object to the given
SOAPElement object. |
void |
setProcessed(boolean value) |
void |
setRelay(boolean relay) |
void |
setRole(String a) |
addAttribute, addAttribute, addAttribute, addAttribute, addChild, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addMapping, addNamespaceDeclaration, addTextNode, childDeepCloned, cloneNode, cloning, detachAllChildren, equals, findElement, getAllAttributes, getAsDocument, getAsDOM, getAsString, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributesEx, getAttributeValue, getAttributeValue, getChildElement, getChildElements, getChildElements, getChildElements, getChildren, getCompleteAttributes, getDeserializationContext, getElementName, getElementsByTagName, getElementsByTagNameNS, getElementsNS, getEncodingStyle, getEnvelope, getFixupDeserializer, getHref, getID, getLength, getName, getNamespacePrefixes, getNamespaceURI, getObjectValue, getObjectValue, getOwnerDocument, getPrefix, getQName, getRealElement, getRecorder, getTagName, getType, getValue, getValueAsType, getValueAsType, getValueDOM, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, isRoot, item, output, publishContents, publishToHandler, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeContents, removeNamespaceDeclaration, setAllAttributes, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setContentsIndex, setEncodingStyle, setEndIndex, setEnvelope, setFixupDeserializer, setName, setNamespaceURI, setNSMappings, setObjectValue, setQName, setRecorder, setType, setValue, toString
appendChild, convertAttrSAXtoDOM, detachNode, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParent, getParentElement, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, initializeChildren, insertBefore, isDirty, isSupported, makeAttributesEditable, normalize, recycleNode, removeChild, replaceChild, reset, setDirty, setDirty, setNodeValue, setOwnerDocument, setParent, setPrefix
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, getAllAttributes, getAttributeValue, getChildElements, getChildElements, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStyle
detachNode, getParentElement, getValue, recycleNode, setValue
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
protected boolean processed
protected String actor
protected boolean mustUnderstand
protected boolean relay
public SOAPHeaderElement(Name name)
public SOAPHeaderElement(QName qname)
public SOAPHeaderElement(Element elem)
public SOAPHeaderElement(String namespace, String localPart, String prefix, Attributes attributes, DeserializationContext context) throws AxisFault
AxisFault
public void setParentElement(SOAPElement parent) throws SOAPException
NodeImpl
Node
object to the given
SOAPElement
object.setParentElement
in class NodeImpl
parent
- the SOAPElement
object to be set as
the parent of this Node
objectSOAPException
- if there is a problem in setting the
parent to the given elementgetParentElement()
public boolean getMustUnderstand()
SOAPHeaderElement
SOAPHeaderElement
object is turned on.getMustUnderstand
in interface SOAPHeaderElement
true
if the mustUnderstand attribute of
this SOAPHeaderElement
object is turned on;
false
otherwisepublic void setMustUnderstand(boolean b)
SOAPHeaderElement
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.
setMustUnderstand
in interface SOAPHeaderElement
b
- true
to
set the mustUnderstand attribute on; false
to turn if offgetMustUnderstand()
public String getActor()
SOAPHeaderElement
SOAPHeaderElement
object.getActor
in interface SOAPHeaderElement
String
giving the URI of the
actorsetActor(java.lang.String)
public void setActor(String a)
SOAPHeaderElement
SOAPHeaderElement
object to the specified actor. The
default value of an actor is:
SOAPConstants.URI_SOAP_ACTOR_NEXT
setActor
in interface SOAPHeaderElement
a
- a String
giving
the URI of the actor to setgetActor()
public String getRole()
public void setRole(String a)
public boolean getRelay()
public void setRelay(boolean relay)
public void setProcessed(boolean value)
public boolean isProcessed()
protected void outputImpl(SerializationContext context) throws Exception
outputImpl
in class MessageElement
context
- destination.Exception
- if something went wrong.public NamedNodeMap getAttributes()
NodeImpl
NamedNodeMap
containing the attributes of this node (if
it is an Element
) or null
otherwise.getAttributes
in interface Node
getAttributes
in class NodeImpl
Copyright © The Apache Software Foundation. All Rights Reserved.