public class SOAPEnvelopeImpl extends SOAPElementImpl<org.apache.axiom.soap.SOAPEnvelope> implements SOAPEnvelope
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 |
|---|
SOAPEnvelopeImpl(org.apache.axiom.soap.SOAPEnvelope envelope) |
| Modifier and Type | Method and Description |
|---|---|
SOAPElement |
addAttribute(Name name,
String value)
Override SOAPElement.addAttribute SOAP1.2 should not allow encodingStyle attribute to be set
on Envelop
|
SOAPBody |
addBody()
Creates a
SOAPBody object and sets it as the SOAPBody object for
this SOAPEnvelope object. |
SOAPElement |
addChildElement(Name name)
Override SOAPElement.addChildElement SOAP 1.2 should not allow element to be added after body
element
|
SOAPHeader |
addHeader()
Creates a
SOAPHeader object and sets it as the SOAPHeader object
for this SOAPEnvelope object. |
SOAPElement |
addTextNode(String text)
Creates a new
Text object initialized with the given String and
adds it to this SOAPElement object. |
Name |
createName(String localName)
Creates a new
Name object initialized with the given local name. |
Name |
createName(String localName,
String prefix,
String uri)
Creates a new
Name object initialized with the given local name, namespace
prefix, and namespace URI. |
SOAPBody |
getBody()
Returns the
SOAPBody object associated with this SOAPEnvelope
object. |
SOAPHeader |
getHeader()
Returns the
SOAPHeader object for this SOAPEnvelope object. |
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, clone, copyContents, createQName, getAllAttributes, getAllAttributesAsQNames, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributeValue, getAttributeValue, getChildElements, getChildElements, 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, toStringdetachNode, getParentElement, setParentElementappendChild, appendElement, 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, toSAAJNodeListequals, 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.SOAPEnvelope envelope)
public Name createName(String localName, String prefix, String uri) throws 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 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 URISOAPException - if there is a SOAP errorpublic Name createName(String localName) throws 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 SOAPEnvelopelocalName - a String giving the local nameName object initialized with the given local nameSOAPException - if there is a SOAP errorpublic SOAPHeader getHeader() throws 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 SOAPEnvelopeSOAPHeader object or null if there is noneSOAPException - if there is a problem obtaining the SOAPHeader
objectpublic SOAPBody getBody() throws 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 SOAPEnvelopeSOAPBody object for this SOAPEnvelope object or
null if there is noneSOAPException - if there is a problem obtaining the SOAPBody
objectpublic SOAPHeader addHeader() throws 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 SOAPEnvelopeSOAPHeader objectSOAPException - if this SOAPEnvelope object already
contains a valid SOAPHeader objectpublic SOAPBody addBody() throws 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 SOAPEnvelopeSOAPBody objectSOAPException - if this SOAPEnvelope object already
contains a valid SOAPBody objectpublic SOAPElement addTextNode(String text) throws SOAPException
SOAPElementImplText object initialized with the given String and
adds it to this SOAPElement object.addTextNode in interface SOAPElementaddTextNode in class SOAPElementImpl<org.apache.axiom.soap.SOAPEnvelope>text - a String object with the textual content to be addedSOAPElement object into which the new Text object was
insertedSOAPException - if there is an error in creating the new Text objectpublic SOAPElement addAttribute(Name name, String value) throws SOAPException
addAttribute in interface SOAPElementaddAttribute in class SOAPElementImpl<org.apache.axiom.soap.SOAPEnvelope>name - a Name object with the name of the attributevalue - a String giving the value of the attributeSOAPElement object into which the attribute was insertedSOAPException - if there is an error in creating the Attributepublic SOAPElement addChildElement(Name name) throws SOAPException
addChildElement in interface SOAPElementaddChildElement in class SOAPElementImpl<org.apache.axiom.soap.SOAPEnvelope>SOAPExceptionCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.