public class SOAPHeaderImpl extends SOAPElementImpl implements SOAPHeader
domNode, soapParent
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(String prefix,
String namespace) |
Modifier and Type | Method and Description |
---|---|
SOAPElement |
addChildElement(SOAPElement child)
Add a SOAPHeaderElement as a child of this SOAPHeader instance.
|
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)
Creates a new
SOAPHeaderElement object initialized with the
specified qname and adds it to this SOAPHeader object. |
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 value)
Attaching a Text node is not legal.
|
SOAPHeaderElement |
addUpgradeHeaderElement(Iterator supportedSoapUris)
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 supportedSoapUri)
Creates a new Upgrade
SOAPHeaderElement object initialized
with the specified supported SOAP URI and adds it to this
SOAPHeader object. |
SOAPHeaderElement |
addUpgradeHeaderElement(String[] supportedSoapUris)
Creates a new Upgrade
SOAPHeaderElement object initialized
with the specified array of supported SOAP URIs and adds it to this
SOAPHeader object. |
Node |
appendChild(Node newChild) |
Iterator |
examineAllHeaderElements()
Returns an Iterator over all the SOAPHeaderElement objects in this SOAPHeader object.
|
Iterator |
examineHeaderElements(String actor)
Returns an Iterator over all the SOAPHeaderElement objects in this SOAPHeader object that have 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 an
Iterator over all the SOAPHeaderElement objects
in this SOAPHeader object
that have the specified actor and detaches them
from this SOAPHeader object. |
Node |
insertBefore(Node newChild,
Node refChild) |
Node |
replaceChild(Node newChild,
Node oldChild) |
addAttribute, addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, createQName, getAllAttributes, getAllAttributesAsQNames, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildElements, getElementName, getElementQName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getFirstChildElementByLocalName, getNamespacePrefixes, getNamespaceURI, getSchemaTypeInfo, getSOAPEnvelope, getTagName, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, removeAttribute, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeContents, removeNamespaceDeclaration, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setElementQName, setElementQNameInternal, setEncodingStyle, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setPrefix, writeElement, writeElementContent
cloneNode, compareDocumentPosition, detachNode, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, getValue, hasAttributes, hasChildNodes, hashCode, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, recycleNode, removeChild, setNodeValue, setParentElement, setTextContent, setUserData, setValue, toString
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
addAttribute, addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, createQName, getAllAttributes, getAllAttributesAsQNames, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildElements, getElementName, getElementQName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration, setElementQName, setEncodingStyle
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, setNodeValue, setPrefix, setTextContent, setUserData
public SOAPElement addChildElement(SOAPElement child) throws SOAPException
addChildElement
in interface SOAPElement
addChildElement
in class SOAPElementImpl
child
- the SOAPElement to be added as a new childSOAPException
- if there was an error in adding this
element as a childpublic SOAPElement addTextNode(String value) throws SOAPException
addTextNode
in interface SOAPElement
addTextNode
in class SOAPElementImpl
value
- a String object with the textual content to be addedSOAPException
- if there is an error in creating the
new Text
object or if it is not legal to
attach it as a child to this
SOAPElement
public SOAPHeaderElement addHeaderElement(Name name) throws SOAPException
addHeaderElement
in interface SOAPHeader
name
- a Name
object with the name of the new
SOAPHeaderElement
objectSOAPHeaderElement
object that was
inserted into this SOAPHeader
objectSOAPException
- if a SOAP error occursSOAPHeader.addHeaderElement(javax.xml.namespace.QName)
public SOAPHeaderElement addHeaderElement(QName qname) throws SOAPException
SOAPHeader
SOAPHeaderElement
object initialized with the
specified qname and adds it to this SOAPHeader
object.addHeaderElement
in interface SOAPHeader
qname
- a QName
object with the qname of the new
SOAPHeaderElement
objectSOAPHeaderElement
object that was
inserted into this SOAPHeader
objectSOAPException
- if a SOAP error occursSOAPHeader.addHeaderElement(Name)
public Iterator examineAllHeaderElements()
examineAllHeaderElements
in interface SOAPHeader
Iterator
object over all the
SOAPHeaderElement
objects contained by this
SOAPHeader
SOAPHeader.extractAllHeaderElements()
public Iterator examineHeaderElements(String actor)
examineHeaderElements
in interface SOAPHeader
actor
- a String
giving the URI of the actor
/ role
for which to searchIterator
object over all the
SOAPHeaderElement
objects that contain the specified
actor
/ role
SOAPHeader.extractHeaderElements(java.lang.String)
,
SOAPConstants.URI_SOAP_ACTOR_NEXT
public Iterator examineMustUnderstandHeaderElements(String actor)
examineMustUnderstandHeaderElements
in interface SOAPHeader
actor
- a String
giving the URI of the actor
/ role
for which to searchIterator
object over all the
SOAPHeaderElement
objects that contain the specified
actor
/ role
and are marked as MustUnderstandSOAPHeader.examineHeaderElements(java.lang.String)
,
SOAPHeader.extractHeaderElements(java.lang.String)
,
SOAPConstants.URI_SOAP_ACTOR_NEXT
public Iterator extractAllHeaderElements()
SOAPHeader
Iterator
over all the SOAPHeaderElement
objects
in this SOAPHeader
object and detaches them
from this SOAPHeader
object.extractAllHeaderElements
in interface SOAPHeader
Iterator
object over all the
SOAPHeaderElement
objects contained by this
SOAPHeader
SOAPHeader.examineAllHeaderElements()
public Iterator extractHeaderElements(String actor)
SOAPHeader
Iterator
over all the SOAPHeaderElement
objects
in this SOAPHeader
object
that have the specified actor and detaches them
from this SOAPHeader
object.
This method allows an actor to process the parts of the
SOAPHeader
object that apply to it and to remove
them before passing the message on to the next actor.
In SOAP 1.2 the env:actor attribute is replaced by the env:role attribute, but with essentially the same semantics.
extractHeaderElements
in interface SOAPHeader
actor
- a String
giving the URI of the actor
/ role
for which to searchIterator
object over all the
SOAPHeaderElement
objects that contain the specified
actor
/ role
SOAPHeader.examineHeaderElements(java.lang.String)
,
SOAPConstants.URI_SOAP_ACTOR_NEXT
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
appendChild
in class NodeImpl
DOMException
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
insertBefore
in class NodeImpl
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
replaceChild
in class NodeImpl
DOMException
public SOAPHeaderElement addNotUnderstoodHeaderElement(QName qname) throws SOAPException
SOAPHeader
SOAPHeaderElement
object initialized
with the specified name and adds it to this SOAPHeader
object.
This operation is supported only by SOAP 1.2.addNotUnderstoodHeaderElement
in interface SOAPHeader
qname
- a QName
object with the name of the
SOAPHeaderElement
object that was not understood.SOAPHeaderElement
object that was
inserted into this SOAPHeader
objectSOAPException
- if a SOAP error occurs.public SOAPHeaderElement addUpgradeHeaderElement(Iterator supportedSoapUris) throws SOAPException
SOAPHeader
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.addUpgradeHeaderElement
in interface SOAPHeader
supportedSoapUris
- an Iterator
object with the URIs of SOAP
versions supported.SOAPHeaderElement
object that was
inserted into this SOAPHeader
objectSOAPException
- if a SOAP error occurs.public SOAPHeaderElement addUpgradeHeaderElement(String[] supportedSoapUris) throws SOAPException
SOAPHeader
SOAPHeaderElement
object initialized
with the specified array 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.addUpgradeHeaderElement
in interface SOAPHeader
supportedSoapUris
- an array of the URIs of SOAP versions supported.SOAPHeaderElement
object that was
inserted into this SOAPHeader
objectSOAPException
- if a SOAP error occurs.public SOAPHeaderElement addUpgradeHeaderElement(String supportedSoapUri) throws SOAPException
SOAPHeader
SOAPHeaderElement
object initialized
with the specified supported SOAP URI and adds it to this
SOAPHeader
object.
This operation is supported on both SOAP 1.1 and SOAP 1.2 header.addUpgradeHeaderElement
in interface SOAPHeader
supportedSoapUri
- the URI of SOAP the version that is supported.SOAPHeaderElement
object that was
inserted into this SOAPHeader
objectSOAPException
- if a SOAP error occurs.Copyright © 2018 JBoss by Red Hat. All rights reserved.