public class SOAPHeaderImpl extends SOAPElementImpl implements javax.xml.soap.SOAPHeader
elementparentElementbuilder, done, factory, FIRSTCHILD, flags, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIEDATTRIBUTE_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 |
|---|---|
javax.xml.soap.SOAPElement |
addChildElement(javax.xml.soap.Name name) |
javax.xml.soap.SOAPElement |
addChildElement(javax.xml.soap.SOAPElement soapElement) |
javax.xml.soap.SOAPElement |
addChildElement(java.lang.String localName) |
javax.xml.soap.SOAPElement |
addChildElement(java.lang.String localName,
java.lang.String prefix) |
javax.xml.soap.SOAPElement |
addChildElement(java.lang.String localName,
java.lang.String prefix,
java.lang.String uri) |
javax.xml.soap.SOAPHeaderElement |
addHeaderElement(javax.xml.soap.Name name)
Creates a new
SOAPHeaderElement object initialized with the specified name and
adds it to this SOAPHeader object. |
javax.xml.soap.SOAPHeaderElement |
addHeaderElement(javax.xml.namespace.QName qname) |
javax.xml.soap.SOAPHeaderElement |
addNotUnderstoodHeaderElement(javax.xml.namespace.QName qname)
Creates a new NotUnderstood SOAPHeaderElement object initialized with the specified name and
adds it to this SOAPHeader object.
|
javax.xml.soap.SOAPElement |
addTextNode(java.lang.String text)
Creates a new
Text object initialized with the given String and
adds it to this SOAPElement object. |
javax.xml.soap.SOAPHeaderElement |
addUpgradeHeaderElement(java.util.Iterator iterator)
Creates a new Upgrade SOAPHeaderElement object initialized with the specified List of
supported SOAP URIs and adds it to this SOAPHeader object.
|
javax.xml.soap.SOAPHeaderElement |
addUpgradeHeaderElement(java.lang.String s) |
javax.xml.soap.SOAPHeaderElement |
addUpgradeHeaderElement(java.lang.String[] as) |
protected org.w3c.dom.Element |
appendElement(org.apache.axiom.om.impl.dom.ElementImpl child) |
org.apache.axiom.om.OMNode |
detach() |
void |
detachNode()
Removes this
Node object from the tree. |
java.util.Iterator |
examineAllHeaderElements()
Returns an
Iterator over all the SOAPHeaderElement objects in this
SOAPHeader object. |
java.util.Iterator |
examineHeaderElements(java.lang.String actor)
Returns a list of all the
SOAPHeaderElement objects in this
SOAPHeader object that have the the specified actor. |
java.util.Iterator |
examineMustUnderstandHeaderElements(java.lang.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. |
java.util.Iterator |
extractAllHeaderElements()
Returns an
Iterator over all the SOAPHeaderElement objects in this
SOAPHeader object and detaches them from this SOAPHeader object. |
java.util.Iterator |
extractHeaderElements(java.lang.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. |
java.util.Iterator |
getChildElements()
Returns an iterator over all the immediate content of this element.
|
java.util.Iterator |
getChildElements(javax.xml.soap.Name name) |
addAttribute, addAttribute, addChildElement, addNamespaceDeclaration, appendChild, appendText, clone, copyContents, createQName, discard, getAllAttributes, getAllAttributesAsQNames, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributeValue, getAttributeValue, getChildElements, getChildNodes, getElement, getElementName, getElementQName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getFirstChild, getLastChild, getLocalName, getNamespacePrefixes, getNamespaceURI, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTagName, getTextContent, getValue, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, hasChildNodes, internalSerialize, removeAttribute, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeContents, removeNamespaceDeclaration, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setElementQName, setEncodingStyle, setParent, setParentElement, setValue, toStringgetParent, getSchemaTypeInfo, getType, recycleNode, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setTypebuild, buildWithAttachments, cloneNode, close, compareDocumentPosition, getBaseURI, getFeature, getLength, getNextOMSibling, getNextOMSiblingIfAvailable, getNodeValue, getOMFactory, getPreviousOMSibling, getUserData, hasAttributes, insertBefore, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, replaceChild, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setNodeValue, setOwnerDocument, setPrefix, setPreviousOMSibling, setTextContent, setUserDataequals, 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, setEncodingStylegetParentElement, 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 javax.xml.soap.SOAPElement addChildElement(java.lang.String localName)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementaddChildElement in class SOAPElementImpljavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(java.lang.String localName,
java.lang.String prefix)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementaddChildElement in class SOAPElementImpljavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(java.lang.String localName,
java.lang.String prefix,
java.lang.String uri)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementaddChildElement in class SOAPElementImpljavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.Name name)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementaddChildElement in class SOAPElementImpljavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.SOAPElement soapElement)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementaddChildElement in class SOAPElementImpljavax.xml.soap.SOAPExceptionprotected org.w3c.dom.Element appendElement(org.apache.axiom.om.impl.dom.ElementImpl child)
throws javax.xml.soap.SOAPException
appendElement in class SOAPElementImpljavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPHeaderElement addHeaderElement(javax.xml.soap.Name name)
throws javax.xml.soap.SOAPException
SOAPHeaderElement object initialized with the specified name and
adds it to this SOAPHeader object.addHeaderElement in interface javax.xml.soap.SOAPHeadername - a Name object with the name of the new SOAPHeaderElement
objectSOAPHeaderElement object that was inserted into this
SOAPHeader objectjavax.xml.soap.SOAPException - if a SOAP error occurspublic java.util.Iterator examineHeaderElements(java.lang.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 javax.xml.soap.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 java.util.Iterator extractHeaderElements(java.lang.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 javax.xml.soap.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 java.util.Iterator examineMustUnderstandHeaderElements(java.lang.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 javax.xml.soap.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 java.util.Iterator examineAllHeaderElements()
Iterator over all the SOAPHeaderElement objects in this
SOAPHeader object.examineAllHeaderElements in interface javax.xml.soap.SOAPHeaderIterator object over all the SOAPHeaderElement objects
contained by this SOAPHeaderpublic java.util.Iterator extractAllHeaderElements()
Iterator over all the SOAPHeaderElement objects in this
SOAPHeader object and detaches them from this SOAPHeader object.extractAllHeaderElements in interface javax.xml.soap.SOAPHeaderIterator object over all the SOAPHeaderElement objects
contained by this SOAPHeaderpublic javax.xml.soap.SOAPHeaderElement addHeaderElement(javax.xml.namespace.QName qname)
throws javax.xml.soap.SOAPException
addHeaderElement in interface javax.xml.soap.SOAPHeaderjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPHeaderElement addNotUnderstoodHeaderElement(javax.xml.namespace.QName qname)
throws javax.xml.soap.SOAPException
addNotUnderstoodHeaderElement in interface javax.xml.soap.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.javax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPHeaderElement addUpgradeHeaderElement(java.util.Iterator iterator)
throws javax.xml.soap.SOAPException
addUpgradeHeaderElement in interface javax.xml.soap.SOAPHeadersupportedSOAPURIs - - an Iterator object with the URIs of SOAP versions supported.javax.xml.soap.SOAPException - - if a SOAP error occurs.public javax.xml.soap.SOAPHeaderElement addUpgradeHeaderElement(java.lang.String[] as)
throws javax.xml.soap.SOAPException
addUpgradeHeaderElement in interface javax.xml.soap.SOAPHeaderjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPHeaderElement addUpgradeHeaderElement(java.lang.String s)
throws javax.xml.soap.SOAPException
addUpgradeHeaderElement in interface javax.xml.soap.SOAPHeaderjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addTextNode(java.lang.String text)
throws javax.xml.soap.SOAPException
SOAPElementImplText object initialized with the given String and
adds it to this SOAPElement object.addTextNode in interface javax.xml.soap.SOAPElementaddTextNode in class SOAPElementImpltext - a String object with the textual content to be addedSOAPElement object into which the new Text object was
insertedjavax.xml.soap.SOAPException - if there is an error in creating the new Text objectpublic java.util.Iterator getChildElements(javax.xml.soap.Name name)
getChildElements in interface javax.xml.soap.SOAPElementgetChildElements in class SOAPElementImplpublic java.util.Iterator getChildElements()
SOAPElementImplText objects as well as SOAPElement objects.getChildElements in interface javax.xml.soap.SOAPElementgetChildElements in class SOAPElementImplText and SOAPElement contained within this
SOAPElement objectpublic void detachNode()
NodeImplExNode object from the tree. Once removed, this node can be garbage
collected if there are no application references to it.detachNode in class SOAPElementImplpublic org.apache.axiom.om.OMNode detach()
detach in interface org.apache.axiom.om.OMNodedetach in class SOAPElementImplCopyright © 2004-2018 The Apache Software Foundation. All Rights Reserved.