Package org.apache.axis2.saaj
Class SOAPHeaderImpl
java.lang.Object
org.apache.axis2.saaj.ProxyNode<T,S>
org.apache.axis2.saaj.NodeImpl<Element,T>
org.apache.axis2.saaj.SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>
org.apache.axis2.saaj.SOAPHeaderImpl
- All Implemented Interfaces:
jakarta.xml.soap.Node,jakarta.xml.soap.SOAPElement,jakarta.xml.soap.SOAPHeader,Element,Node
public class SOAPHeaderImpl
extends SOAPElementImpl<org.apache.axiom.soap.SOAPHeader>
implements jakarta.xml.soap.SOAPHeader
-
Field Summary
Fields inherited from interface org.w3c.dom.Node
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.xml.soap.SOAPElementaddChildElement(jakarta.xml.soap.Name name) jakarta.xml.soap.SOAPElementaddChildElement(jakarta.xml.soap.SOAPElement soapElement) jakarta.xml.soap.SOAPElementaddChildElement(String localName) jakarta.xml.soap.SOAPElementaddChildElement(String localName, String prefix) jakarta.xml.soap.SOAPElementaddChildElement(String localName, String prefix, String uri) jakarta.xml.soap.SOAPHeaderElementaddHeaderElement(jakarta.xml.soap.Name name) Creates a newSOAPHeaderElementobject initialized with the specified name and adds it to thisSOAPHeaderobject.jakarta.xml.soap.SOAPHeaderElementaddHeaderElement(QName qname) jakarta.xml.soap.SOAPHeaderElementCreates a new NotUnderstood SOAPHeaderElement object initialized with the specified name and adds it to this SOAPHeader object.jakarta.xml.soap.SOAPElementaddTextNode(String text) Creates a newTextobject initialized with the givenStringand adds it to thisSOAPElementobject.jakarta.xml.soap.SOAPHeaderElementjakarta.xml.soap.SOAPHeaderElementjakarta.xml.soap.SOAPHeaderElementaddUpgradeHeaderElement(Iterator iterator) Creates a new Upgrade SOAPHeaderElement object initialized with the specified List of supported SOAP URIs and adds it to this SOAPHeader object.protected ElementappendElement(Element child) Returns anIteratorover all theSOAPHeaderElementobjects in thisSOAPHeaderobject.examineHeaderElements(String actor) Returns a list of all theSOAPHeaderElementobjects in thisSOAPHeaderobject that have the the specified actor.Returns anIteratorover all theSOAPHeaderElementobjects in thisSOAPHeaderobject that have the specified actor and that have a MustUnderstand attribute whose value is equivalent totrue.Returns anIteratorover all theSOAPHeaderElementobjects in thisSOAPHeaderobject and detaches them from thisSOAPHeaderobject.extractHeaderElements(String actor) Returns a list of all theSOAPHeaderElementobjects in thisSOAPHeaderobject that have the the specified actor and detaches them from thisSOAPHeaderobject.Returns an iterator over all the immediate content of this element.getChildElements(jakarta.xml.soap.Name name) Methods inherited from class org.apache.axis2.saaj.SOAPElementImpl
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, toStringMethods inherited from class org.apache.axis2.saaj.NodeImpl
detachNode, getParentElement, setParentElementMethods inherited from class org.apache.axis2.saaj.ProxyNode
appendChild, 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, toSAAJNodeListMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface jakarta.xml.soap.Node
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValueMethods inherited from interface org.w3c.dom.Node
appendChild, 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, setUserDataMethods inherited from interface jakarta.xml.soap.SOAPElement
addAttribute, addAttribute, addChildElement, addNamespaceDeclaration, createQName, getAllAttributes, getAllAttributesAsQNames, getAttributeValue, getAttributeValue, getChildElements, getElementName, getElementQName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration, setElementQName, setEncodingStyle
-
Constructor Details
-
SOAPHeaderImpl
public SOAPHeaderImpl(org.apache.axiom.soap.SOAPHeader header) Constructor- Parameters:
header-
-
-
Method Details
-
addChildElement
public jakarta.xml.soap.SOAPElement addChildElement(String localName) throws jakarta.xml.soap.SOAPException - Specified by:
addChildElementin interfacejakarta.xml.soap.SOAPElement- Overrides:
addChildElementin classSOAPElementImpl<org.apache.axiom.soap.SOAPHeader>- Throws:
jakarta.xml.soap.SOAPException
-
addChildElement
public jakarta.xml.soap.SOAPElement addChildElement(String localName, String prefix) throws jakarta.xml.soap.SOAPException - Specified by:
addChildElementin interfacejakarta.xml.soap.SOAPElement- Overrides:
addChildElementin classSOAPElementImpl<org.apache.axiom.soap.SOAPHeader>- Throws:
jakarta.xml.soap.SOAPException
-
addChildElement
public jakarta.xml.soap.SOAPElement addChildElement(String localName, String prefix, String uri) throws jakarta.xml.soap.SOAPException - Specified by:
addChildElementin interfacejakarta.xml.soap.SOAPElement- Overrides:
addChildElementin classSOAPElementImpl<org.apache.axiom.soap.SOAPHeader>- Throws:
jakarta.xml.soap.SOAPException
-
addChildElement
public jakarta.xml.soap.SOAPElement addChildElement(jakarta.xml.soap.Name name) throws jakarta.xml.soap.SOAPException - Specified by:
addChildElementin interfacejakarta.xml.soap.SOAPElement- Overrides:
addChildElementin classSOAPElementImpl<org.apache.axiom.soap.SOAPHeader>- Throws:
jakarta.xml.soap.SOAPException
-
addChildElement
public jakarta.xml.soap.SOAPElement addChildElement(jakarta.xml.soap.SOAPElement soapElement) throws jakarta.xml.soap.SOAPException - Specified by:
addChildElementin interfacejakarta.xml.soap.SOAPElement- Overrides:
addChildElementin classSOAPElementImpl<org.apache.axiom.soap.SOAPHeader>- Throws:
jakarta.xml.soap.SOAPException
-
appendElement
- Overrides:
appendElementin classProxyNode<Element,org.apache.axiom.soap.SOAPHeader> - Throws:
jakarta.xml.soap.SOAPException
-
addHeaderElement
public jakarta.xml.soap.SOAPHeaderElement addHeaderElement(jakarta.xml.soap.Name name) throws jakarta.xml.soap.SOAPException Creates a newSOAPHeaderElementobject initialized with the specified name and adds it to thisSOAPHeaderobject.- Specified by:
addHeaderElementin interfacejakarta.xml.soap.SOAPHeader- Parameters:
name- aNameobject with the name of the newSOAPHeaderElementobject- Returns:
- the new
SOAPHeaderElementobject that was inserted into thisSOAPHeaderobject - Throws:
jakarta.xml.soap.SOAPException- if a SOAP error occurs
-
examineHeaderElements
Returns a list of all theSOAPHeaderElementobjects in thisSOAPHeaderobject 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 aSOAPHeaderobject, the message is sent to its ultimate destination.- Specified by:
examineHeaderElementsin interfacejakarta.xml.soap.SOAPHeader- Parameters:
actor- aStringgiving the URI of the actor for which to search- Returns:
- an
Iteratorobject over all theSOAPHeaderElementobjects that contain the specified actor - See Also:
-
extractHeaderElements
Returns a list of all theSOAPHeaderElementobjects in thisSOAPHeaderobject that have the the specified actor and detaches them from thisSOAPHeaderobject.This method allows an actor to process only the parts of the
SOAPHeaderobject that apply to it and to remove them before passing the message on to the next actor.- Specified by:
extractHeaderElementsin interfacejakarta.xml.soap.SOAPHeader- Parameters:
actor- aStringgiving the URI of the actor for which to search- Returns:
- an
Iteratorobject over all theSOAPHeaderElementobjects that contain the specified actor - See Also:
-
examineMustUnderstandHeaderElements
Returns anIteratorover all theSOAPHeaderElementobjects in thisSOAPHeaderobject that have the specified actor and that have a MustUnderstand attribute whose value is equivalent totrue.- Specified by:
examineMustUnderstandHeaderElementsin interfacejakarta.xml.soap.SOAPHeader- Parameters:
actor- aStringgiving the URI of the actor for which to search- Returns:
- an
Iteratorobject over all theSOAPHeaderElementobjects that contain the specified actor and are marked as MustUnderstand
-
examineAllHeaderElements
Returns anIteratorover all theSOAPHeaderElementobjects in thisSOAPHeaderobject.- Specified by:
examineAllHeaderElementsin interfacejakarta.xml.soap.SOAPHeader- Returns:
- an
Iteratorobject over all theSOAPHeaderElementobjects contained by thisSOAPHeader
-
extractAllHeaderElements
Returns anIteratorover all theSOAPHeaderElementobjects in thisSOAPHeaderobject and detaches them from thisSOAPHeaderobject.- Specified by:
extractAllHeaderElementsin interfacejakarta.xml.soap.SOAPHeader- Returns:
- an
Iteratorobject over all theSOAPHeaderElementobjects contained by thisSOAPHeader
-
addHeaderElement
public jakarta.xml.soap.SOAPHeaderElement addHeaderElement(QName qname) throws jakarta.xml.soap.SOAPException - Specified by:
addHeaderElementin interfacejakarta.xml.soap.SOAPHeader- Throws:
jakarta.xml.soap.SOAPException
-
addNotUnderstoodHeaderElement
public jakarta.xml.soap.SOAPHeaderElement addNotUnderstoodHeaderElement(QName qname) throws jakarta.xml.soap.SOAPException Creates a new NotUnderstood SOAPHeaderElement object initialized with the specified name and adds it to this SOAPHeader object. This operation is supported only by SOAP 1.2- Specified by:
addNotUnderstoodHeaderElementin interfacejakarta.xml.soap.SOAPHeader- Parameters:
name- - a QName object with the name of the SOAPHeaderElement object that was not understood.- Returns:
- the new SOAPHeaderElement object that was inserted into this SOAPHeader object
- Throws:
jakarta.xml.soap.SOAPException
-
addUpgradeHeaderElement
public jakarta.xml.soap.SOAPHeaderElement addUpgradeHeaderElement(Iterator iterator) throws jakarta.xml.soap.SOAPException Creates a new Upgrade SOAPHeaderElement object initialized with the specified List of supported SOAP URIs and adds it to this SOAPHeader object. This operation is supported on both SOAP 1.1 and SOAP 1.2 header.- Specified by:
addUpgradeHeaderElementin interfacejakarta.xml.soap.SOAPHeader- Parameters:
supportedSOAPURIs- - an Iterator object with the URIs of SOAP versions supported.- Returns:
- the new SOAPHeaderElement object that was inserted into this SOAPHeader object
- Throws:
jakarta.xml.soap.SOAPException- - if a SOAP error occurs.
-
addUpgradeHeaderElement
public jakarta.xml.soap.SOAPHeaderElement addUpgradeHeaderElement(String[] as) throws jakarta.xml.soap.SOAPException - Specified by:
addUpgradeHeaderElementin interfacejakarta.xml.soap.SOAPHeader- Throws:
jakarta.xml.soap.SOAPException
-
addUpgradeHeaderElement
public jakarta.xml.soap.SOAPHeaderElement addUpgradeHeaderElement(String s) throws jakarta.xml.soap.SOAPException - Specified by:
addUpgradeHeaderElementin interfacejakarta.xml.soap.SOAPHeader- Throws:
jakarta.xml.soap.SOAPException
-
addTextNode
Description copied from class:SOAPElementImplCreates a newTextobject initialized with the givenStringand adds it to thisSOAPElementobject.- Specified by:
addTextNodein interfacejakarta.xml.soap.SOAPElement- Overrides:
addTextNodein classSOAPElementImpl<org.apache.axiom.soap.SOAPHeader>- Parameters:
text- aStringobject with the textual content to be added- Returns:
- the
SOAPElementobject into which the newTextobject was inserted - Throws:
jakarta.xml.soap.SOAPException- if there is an error in creating the newTextobject
-
getChildElements
- Specified by:
getChildElementsin interfacejakarta.xml.soap.SOAPElement- Overrides:
getChildElementsin classSOAPElementImpl<org.apache.axiom.soap.SOAPHeader>
-
getChildElements
Description copied from class:SOAPElementImplReturns an iterator over all the immediate content of this element. This includesTextobjects as well asSOAPElementobjects.- Specified by:
getChildElementsin interfacejakarta.xml.soap.SOAPElement- Overrides:
getChildElementsin classSOAPElementImpl<org.apache.axiom.soap.SOAPHeader>- Returns:
- an iterator over
TextandSOAPElementcontained within thisSOAPElementobject
-