|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.dom.NodeImpl
org.apache.axis2.saaj.NodeImplEx
org.apache.axis2.saaj.SOAPElementImpl
org.apache.axis2.saaj.SOAPHeaderImpl
public class SOAPHeaderImpl
Field Summary |
---|
Fields inherited from class org.apache.axis2.saaj.SOAPElementImpl |
---|
element |
Fields inherited from class org.apache.axis2.saaj.NodeImplEx |
---|
parentElement |
Fields inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
---|
builder, done, factory, FIRSTCHILD, flags, nodeType, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED |
Fields inherited from interface org.apache.axiom.om.OMNode |
---|
DTD_NODE, PI_NODE, SPACE_NODE |
Constructor Summary | |
---|---|
SOAPHeaderImpl(org.apache.axiom.soap.SOAPHeader header)
Constructor |
Method Summary | |
---|---|
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. |
SOAPElement |
addTextNode(String text)
Creates a new Text object initialized with the given
String and adds it to this SOAPElement object. |
org.apache.axiom.om.OMNode |
detach()
|
void |
detachNode()
Removes this Node object from the tree. |
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)
|
Methods inherited from class org.apache.axis2.saaj.NodeImplEx |
---|
getParent, getSchemaTypeInfo, getType, recycleNode, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setType |
Methods inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
---|
appendChild, build, buildWithAttachments, cloneNode, compareDocumentPosition, getBaseURI, getFeature, getLength, getNextOMSibling, getNodeValue, getOMFactory, getPreviousOMSibling, getTextContent, getUserData, hasAttributes, insertBefore, insertSiblingAfter, insertSiblingBefore, internalSerializeWithCache, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setNodeValue, setOwnerDocument, setPrefix, setPreviousOMSibling, setTextContent, setUserData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.soap.SOAPElement |
---|
addAttribute, addNamespaceDeclaration, getAllAttributes, getAttributeValue, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStyle |
Methods inherited from interface javax.xml.soap.Node |
---|
getParentElement, getValue, recycleNode, setParentElement, setValue |
Methods 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, setUserData |
Methods 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, setIdAttributeNS |
Methods 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, setUserData |
Constructor Detail |
---|
public SOAPHeaderImpl(org.apache.axiom.soap.SOAPHeader header)
header
- Method Detail |
---|
public SOAPElement addChildElement(String localName) throws SOAPException
addChildElement
in interface SOAPElement
addChildElement
in class SOAPElementImpl
SOAPException
public SOAPElement addChildElement(String localName, String prefix) throws SOAPException
addChildElement
in interface SOAPElement
addChildElement
in class SOAPElementImpl
SOAPException
public SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException
addChildElement
in interface SOAPElement
addChildElement
in class SOAPElementImpl
SOAPException
public SOAPElement addChildElement(Name name) throws SOAPException
addChildElement
in interface SOAPElement
addChildElement
in class SOAPElementImpl
SOAPException
public SOAPElement addChildElement(SOAPElement soapElement) throws SOAPException
addChildElement
in interface SOAPElement
addChildElement
in class SOAPElementImpl
SOAPException
public SOAPHeaderElement addHeaderElement(Name name) throws SOAPException
SOAPHeaderElement
object
initialized with the specified name and adds it to this
SOAPHeader
object.
addHeaderElement
in interface SOAPHeader
name
- a Name
object with
the name of the new SOAPHeaderElement
object
SOAPHeaderElement
object that
was inserted into this SOAPHeader
object
SOAPException
- 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 SOAPHeader
actor
- a String
giving the
URI of the actor for which to search
Iterator
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 SOAPHeader
actor
- a String
giving the
URI of the actor for which to search
Iterator
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 SOAPHeader
actor
- a String
giving the URI of the actor for which
to search
Iterator
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 SOAPHeader
Iterator
object over all the
SOAPHeaderElement
objects contained by this
SOAPHeader
public Iterator extractAllHeaderElements()
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
public SOAPElement addTextNode(String text) throws SOAPException
SOAPElementImpl
Text
object initialized with the given
String
and adds it to this SOAPElement
object.
addTextNode
in interface SOAPElement
addTextNode
in class SOAPElementImpl
text
- a String
object with the textual content to be added
SOAPElement
object into which
the new Text
object was inserted
SOAPException
- if there is an error in creating the
new Text
objectpublic Iterator getChildElements(Name name)
getChildElements
in interface SOAPElement
getChildElements
in class SOAPElementImpl
public Iterator getChildElements()
SOAPElementImpl
Text
objects as well
as SOAPElement
objects.
getChildElements
in interface SOAPElement
getChildElements
in class SOAPElementImpl
Text
and SOAPElement
contained within this SOAPElement
objectpublic void detachNode()
NodeImplEx
Node
object from the tree. Once
removed, this node can be garbage collected if there are no
application references to it.
detachNode
in class SOAPElementImpl
public org.apache.axiom.om.OMNode detach()
detach
in interface org.apache.axiom.om.OMNode
detach
in class SOAPElementImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |