public class SOAPEnvelopeImpl extends SOAPElementImpl implements javax.xml.soap.SOAPEnvelope
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 |
|---|
SOAPEnvelopeImpl(org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl envelope) |
| Modifier and Type | Method and Description |
|---|---|
javax.xml.soap.SOAPElement |
addAttribute(javax.xml.soap.Name name,
java.lang.String value)
Override SOAPElement.addAttribute SOAP1.2 should not allow encodingStyle attribute to be set
on Envelop
|
javax.xml.soap.SOAPBody |
addBody()
Creates a
SOAPBody object and sets it as the SOAPBody object for
this SOAPEnvelope object. |
javax.xml.soap.SOAPElement |
addChildElement(javax.xml.soap.Name name)
Override SOAPElement.addChildElement SOAP 1.2 should not allow element to be added after body
element
|
javax.xml.soap.SOAPHeader |
addHeader()
Creates a
SOAPHeader object and sets it as the SOAPHeader object
for this SOAPEnvelope 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.Name |
createName(java.lang.String localName)
Creates a new
Name object initialized with the given local name. |
javax.xml.soap.Name |
createName(java.lang.String localName,
java.lang.String prefix,
java.lang.String uri)
Creates a new
Name object initialized with the given local name, namespace
prefix, and namespace URI. |
javax.xml.soap.SOAPBody |
getBody()
Returns the
SOAPBody object associated with this SOAPEnvelope
object. |
javax.xml.soap.SOAPHeader |
getHeader()
Returns the
SOAPHeader object for this SOAPEnvelope object. |
org.apache.axiom.soap.SOAPEnvelope |
getOMEnvelope() |
void |
setOwnerDocument(org.w3c.dom.Document document) |
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, appendChild, appendElement, appendText, clone, copyContents, createQName, detach, detachNode, discard, getAllAttributes, getAllAttributesAsQNames, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributeValue, getAttributeValue, getChildElements, getChildElements, 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, 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, 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 SOAPEnvelopeImpl(org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl envelope)
public void setOwnerDocument(org.w3c.dom.Document document)
public org.apache.axiom.soap.SOAPEnvelope getOMEnvelope()
public javax.xml.soap.Name createName(java.lang.String localName,
java.lang.String prefix,
java.lang.String uri)
throws javax.xml.soap.SOAPException
Name object initialized with the given local name, namespace
prefix, and namespace URI.
This factory method creates Name objects for use in the SOAP/XML document.
createName in interface javax.xml.soap.SOAPEnvelopelocalName - a String giving the local nameprefix - a String giving the prefix of the namespaceuri - a String giving the URI of the namespaceName object initialized with the given local name, namespace prefix,
and namespace URIjavax.xml.soap.SOAPException - if there is a SOAP errorpublic javax.xml.soap.Name createName(java.lang.String localName)
throws javax.xml.soap.SOAPException
Name object initialized with the given local name.
This factory method creates Name objects for use in the SOAP/XML document.
createName in interface javax.xml.soap.SOAPEnvelopelocalName - a String giving the local nameName object initialized with the given local namejavax.xml.soap.SOAPException - if there is a SOAP errorpublic javax.xml.soap.SOAPHeader getHeader()
throws javax.xml.soap.SOAPException
SOAPHeader object for this SOAPEnvelope object.
A new SOAPMessage object is by default created with a
SOAPEnvelope object that contains an empty SOAPHeader object. As a
result, the method getHeader will always return a SOAPHeader object
unless the header has been removed and a new one has not been added.
getHeader in interface javax.xml.soap.SOAPEnvelopeSOAPHeader object or null if there is nonejavax.xml.soap.SOAPException - if there is a problem obtaining the SOAPHeader
objectpublic javax.xml.soap.SOAPBody getBody()
throws javax.xml.soap.SOAPException
SOAPBody object associated with this SOAPEnvelope
object.
A new SOAPMessage object is by default created with a
SOAPEnvelope object that contains an empty SOAPBody object. As a
result, the method getBody will always return a SOAPBody object
unless the body has been removed and a new one has not been added.
getBody in interface javax.xml.soap.SOAPEnvelopeSOAPBody object for this SOAPEnvelope object or
null if there is nonejavax.xml.soap.SOAPException - if there is a problem obtaining the SOAPBody
objectpublic javax.xml.soap.SOAPHeader addHeader()
throws javax.xml.soap.SOAPException
SOAPHeader object and sets it as the SOAPHeader object
for this SOAPEnvelope object.
It is illegal to add a header when the envelope already contains a header. Therefore, this method should be called only after the existing header has been removed.
addHeader in interface javax.xml.soap.SOAPEnvelopeSOAPHeader objectjavax.xml.soap.SOAPException - if this SOAPEnvelope object already
contains a valid SOAPHeader objectpublic javax.xml.soap.SOAPBody addBody()
throws javax.xml.soap.SOAPException
SOAPBody object and sets it as the SOAPBody object for
this SOAPEnvelope object.
It is illegal to add a body when the envelope already contains a body. Therefore, this method should be called only after the existing body has been removed.
addBody in interface javax.xml.soap.SOAPEnvelopeSOAPBody objectjavax.xml.soap.SOAPException - if this SOAPEnvelope object already
contains a valid SOAPBody objectpublic 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 javax.xml.soap.SOAPElement addAttribute(javax.xml.soap.Name name,
java.lang.String value)
throws javax.xml.soap.SOAPException
addAttribute in interface javax.xml.soap.SOAPElementaddAttribute in class SOAPElementImplname - a Name object with the name of the attributevalue - a String giving the value of the attributeSOAPElement object into which the attribute was insertedjavax.xml.soap.SOAPException - if there is an error in creating the Attributepublic 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.SOAPExceptionCopyright © 2004-2025 The Apache Software Foundation. All Rights Reserved.