public class SOAPHeaderImpl extends SOAPElementImpl<org.apache.axiom.soap.SOAPHeader> implements SOAPHeader
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 |
|---|
SOAPHeaderImpl(org.apache.axiom.soap.SOAPHeader header)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
SOAPElement |
addChildElement(Name name) |
SOAPElement |
addChildElement(SOAPElement soapElement) |
SOAPElement |
addChildElement(String localName) |
SOAPElement |
addChildElement(String localName,
String prefix) |
SOAPElement |
addChildElement(String localName,
String prefix,
String uri) |
SOAPHeaderElement |
addHeaderElement(Name name)
Creates a new
SOAPHeaderElement object initialized with the specified name and
adds it to this SOAPHeader object. |
SOAPHeaderElement |
addHeaderElement(QName qname) |
SOAPHeaderElement |
addNotUnderstoodHeaderElement(QName qname)
Creates a new NotUnderstood SOAPHeaderElement object initialized with the specified name and
adds it to this SOAPHeader object.
|
SOAPElement |
addTextNode(String text)
Creates a new
Text object initialized with the given String and
adds it to this SOAPElement object. |
SOAPHeaderElement |
addUpgradeHeaderElement(Iterator iterator)
Creates a new Upgrade SOAPHeaderElement object initialized with the specified List of
supported SOAP URIs and adds it to this SOAPHeader object.
|
SOAPHeaderElement |
addUpgradeHeaderElement(String s) |
SOAPHeaderElement |
addUpgradeHeaderElement(String[] as) |
protected Element |
appendElement(Element child) |
Iterator |
examineAllHeaderElements()
Returns an
Iterator over all the SOAPHeaderElement objects in this
SOAPHeader object. |
Iterator |
examineHeaderElements(String actor)
Returns a list of all the
SOAPHeaderElement objects in this
SOAPHeader object that have the the specified actor. |
Iterator |
examineMustUnderstandHeaderElements(String actor)
Returns an
Iterator over all the SOAPHeaderElement objects in this
SOAPHeader object that have the specified actor and that have a MustUnderstand
attribute whose value is equivalent to true. |
Iterator |
extractAllHeaderElements()
Returns an
Iterator over all the SOAPHeaderElement objects in this
SOAPHeader object and detaches them from this SOAPHeader object. |
Iterator |
extractHeaderElements(String actor)
Returns a list of all the
SOAPHeaderElement objects in this
SOAPHeader object that have the the specified actor and detaches them from this
SOAPHeader object. |
Iterator |
getChildElements()
Returns an iterator over all the immediate content of this element.
|
Iterator |
getChildElements(Name name) |
addAttribute, addAttribute, addChildElement, addNamespaceDeclaration, clone, copyContents, createQName, getAllAttributes, getAllAttributesAsQNames, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributeValue, getAttributeValue, getChildElements, getElementName, getElementQName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getTagName, getValue, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, removeAttribute, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeContents, removeNamespaceDeclaration, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setElementQName, setEncodingStyle, setValue, toStringdetachNode, getParentElement, setParentElementappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOMTarget, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSchemaTypeInfo, getTarget, getTextContent, getType, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, recycleNode, removeChild, replaceChild, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setPrefix, setTextContent, setType, setUserData, toSAAJNodeListequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttribute, addAttribute, addChildElement, addNamespaceDeclaration, createQName, getAllAttributes, getAllAttributesAsQNames, getAttributeValue, getAttributeValue, getChildElements, getElementName, getElementQName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration, setElementQName, setEncodingStyledetachNode, getParentElement, getValue, recycleNode, setParentElement, setValuegetAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, cloneNode, compareDocumentPosition, getAttributes, 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, setUserDatapublic SOAPHeaderImpl(org.apache.axiom.soap.SOAPHeader header)
header - public SOAPElement addChildElement(String localName) throws SOAPException
addChildElement in interface SOAPElementaddChildElement in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>SOAPExceptionpublic SOAPElement addChildElement(String localName, String prefix) throws SOAPException
addChildElement in interface SOAPElementaddChildElement in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>SOAPExceptionpublic SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException
addChildElement in interface SOAPElementaddChildElement in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>SOAPExceptionpublic SOAPElement addChildElement(Name name) throws SOAPException
addChildElement in interface SOAPElementaddChildElement in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>SOAPExceptionpublic SOAPElement addChildElement(SOAPElement soapElement) throws SOAPException
addChildElement in interface SOAPElementaddChildElement in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>SOAPExceptionprotected Element appendElement(Element child) throws SOAPException
appendElement in class ProxyNode<Element,org.apache.axiom.soap.SOAPHeader>SOAPExceptionpublic SOAPHeaderElement addHeaderElement(Name name) throws SOAPException
SOAPHeaderElement object initialized with the specified name and
adds it to this SOAPHeader object.addHeaderElement in interface SOAPHeadername - a Name object with the name of the new SOAPHeaderElement
objectSOAPHeaderElement object that was inserted into this
SOAPHeader objectSOAPException - if a SOAP error occurspublic Iterator examineHeaderElements(String actor)
SOAPHeaderElement objects in this
SOAPHeader object that have the the specified actor. An actor is a global
attribute that indicates the intermediate parties to whom the message should be sent. An
actor receives the message and then sends it 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, the message is sent to its ultimate destination.examineHeaderElements in interface SOAPHeaderactor - a String giving the URI of the actor for which to searchIterator object over all the SOAPHeaderElement objects
that contain the specified actorextractHeaderElements(java.lang.String)public Iterator extractHeaderElements(String actor)
SOAPHeaderElement objects in this
SOAPHeader object that have the the specified actor and detaches them from this
SOAPHeader object.
This method allows an actor to process only the parts of the SOAPHeader
object that apply to it and to remove them before passing the message on to the next actor.
extractHeaderElements in interface SOAPHeaderactor - a String giving the URI of the actor for which to searchIterator object over all the SOAPHeaderElement objects
that contain the specified actorexamineHeaderElements(java.lang.String)public Iterator examineMustUnderstandHeaderElements(String actor)
Iterator over all the SOAPHeaderElement objects in this
SOAPHeader object that have the specified actor and that have a MustUnderstand
attribute whose value is equivalent to true.examineMustUnderstandHeaderElements in interface SOAPHeaderactor - a String giving the URI of the actor for which to searchIterator object over all the SOAPHeaderElement objects
that contain the specified actor and are marked as MustUnderstandpublic Iterator examineAllHeaderElements()
Iterator over all the SOAPHeaderElement objects in this
SOAPHeader object.examineAllHeaderElements in interface SOAPHeaderIterator object over all the SOAPHeaderElement objects
contained by this SOAPHeaderpublic Iterator extractAllHeaderElements()
Iterator over all the SOAPHeaderElement objects in this
SOAPHeader object and detaches them from this SOAPHeader object.extractAllHeaderElements in interface SOAPHeaderIterator object over all the SOAPHeaderElement objects
contained by this SOAPHeaderpublic SOAPHeaderElement addHeaderElement(QName qname) throws SOAPException
addHeaderElement in interface SOAPHeaderSOAPExceptionpublic SOAPHeaderElement addNotUnderstoodHeaderElement(QName qname) throws SOAPException
addNotUnderstoodHeaderElement in interface SOAPHeadername - - a QName object with the name of the SOAPHeaderElement object that was not
understood.SOAPException- - if a SOAP error occurs. java.lang.UnsupportedOperationException - if
this is a SOAP 1.1 Header.SOAPExceptionpublic SOAPHeaderElement addUpgradeHeaderElement(Iterator iterator) throws SOAPException
addUpgradeHeaderElement in interface SOAPHeadersupportedSOAPURIs - - an Iterator object with the URIs of SOAP versions supported.SOAPException - - if a SOAP error occurs.public SOAPHeaderElement addUpgradeHeaderElement(String[] as) throws SOAPException
addUpgradeHeaderElement in interface SOAPHeaderSOAPExceptionpublic SOAPHeaderElement addUpgradeHeaderElement(String s) throws SOAPException
addUpgradeHeaderElement in interface SOAPHeaderSOAPExceptionpublic SOAPElement addTextNode(String text) throws SOAPException
SOAPElementImplText object initialized with the given String and
adds it to this SOAPElement object.addTextNode in interface SOAPElementaddTextNode in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>text - a String object with the textual content to be addedSOAPElement object into which the new Text object was
insertedSOAPException - if there is an error in creating the new Text objectpublic Iterator getChildElements(Name name)
getChildElements in interface SOAPElementgetChildElements in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>public Iterator getChildElements()
SOAPElementImplText objects as well as SOAPElement objects.getChildElements in interface SOAPElementgetChildElements in class SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>Text and SOAPElement contained within this
SOAPElement objectCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.