public class SOAPEnvelopeImpl extends SOAPElement implements org.apache.axiom.soap.SOAPEnvelope, org.apache.axiom.om.OMConstants
attributes, DEFAULT_DEFAULT_NS_OBJECT, firstChild, lastChild, localName, namespaces, noPrefixNamespaceCounter, ns, qNamenextSibling, nodeType, parent, previousSiblingbuilder, done, factoryCDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODEARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DATA_HANDLER, DEFAULT_CHAR_SET_ENCODING, DEFAULT_DEFAULT_NAMESPACE, DEFAULT_XML_VERSION, IS_BINARY, IS_DATA_HANDLERS_AWARE, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER, XMLATTRTYPE_CDATA, XMLATTRTYPE_ENTITIES, XMLATTRTYPE_ENTITY, XMLATTRTYPE_ID, XMLATTRTYPE_IDREF, XMLATTRTYPE_IDREFS, XMLATTRTYPE_NMTOKEN, XMLATTRTYPE_NMTOKENS, XMLATTRTYPE_NOTATION, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI| Constructor and Description |
|---|
SOAPEnvelopeImpl(org.apache.axiom.om.OMNamespace ns,
org.apache.axiom.soap.SOAPFactory factory)
Constructor
|
SOAPEnvelopeImpl(org.apache.axiom.om.OMXMLParserWrapper builder,
org.apache.axiom.soap.SOAPFactory factory)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(org.apache.axiom.om.OMNode child)
Add a SOAPHeader or SOAPBody object
|
protected void |
checkParent(org.apache.axiom.om.OMElement parent)
This has to be implemented by all the derived classes to check for the correct parent.
|
org.apache.axiom.om.OMNode |
detach()
Method detach
|
org.apache.axiom.soap.SOAPBody |
getBody()
Returns the
SOAPBody object associated with this SOAPEnvelope
object. |
org.apache.axiom.soap.SOAPHeader |
getHeader()
Returns the
SOAPHeader object for this SOAPEnvelope object. |
String |
getSOAPBodyFirstElementLocalName() |
org.apache.axiom.om.OMNamespace |
getSOAPBodyFirstElementNS() |
org.apache.axiom.soap.SOAPVersion |
getVersion() |
boolean |
hasFault() |
void |
internalSerialize(XMLStreamWriter writer2,
boolean cache)
Serializes the node.
|
registerContentHandler, setParentaddAttribute, addAttribute, build, buildNext, buildWithAttachments, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, discard, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getBuilder, getChildElements, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDefaultNamespace, getFirstChildWithName, getFirstElement, getFirstOMChild, getFirstOMChildIfAvailable, getLineNumber, getLocalName, getNamespace, getNextOMSibling, getQName, getText, getTextAsQName, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, notifyChildComplete, removeAttribute, resolveQName, setBuilder, setFirstChild, setLastChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsumegetNextOMSiblingIfAvailable, getParent, getPreviousOMSibling, importNode, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, setComplete, setNextOMSibling, setPreviousOMSibling, setTypeclose, getOMFactory, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getLocalName, getNamespace, getQName, getText, getTextAsQName, getXMLStreamReader, removeAttribute, resolveQName, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setBuilder, setFirstChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsumebuildWithAttachments, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBeforebuildNext, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCachingpublic SOAPEnvelopeImpl(org.apache.axiom.om.OMXMLParserWrapper builder,
org.apache.axiom.soap.SOAPFactory factory)
builder - the OMXMLParserWrapper building this envelopefactory - the SOAPFactory building this envelopepublic SOAPEnvelopeImpl(org.apache.axiom.om.OMNamespace ns,
org.apache.axiom.soap.SOAPFactory factory)
ns - OMNamespace for this envelopefactory - SOAPFactory associated with this envelopepublic org.apache.axiom.soap.SOAPVersion getVersion()
getVersion in interface org.apache.axiom.soap.SOAPEnvelopepublic org.apache.axiom.soap.SOAPHeader getHeader()
throws org.apache.axiom.om.OMException
SOAPHeader object for this SOAPEnvelope object.
This SOAPHeader will just be a container for all the headers in the OMMessage
getHeader in interface org.apache.axiom.soap.SOAPEnvelopeSOAPHeader object or null if there is noneorg.apache.axiom.om.OMException - if there is a problem obtaining the SOAPHeader objectpublic void addChild(org.apache.axiom.om.OMNode child)
addChild in interface org.apache.axiom.om.OMContaineraddChild in class OMElementImplchild - an OMNode to add - must be either a SOAPHeader or a SOAPBodypublic org.apache.axiom.soap.SOAPBody getBody()
throws org.apache.axiom.om.OMException
SOAPBody object associated with this SOAPEnvelope
object. This SOAPBody will just be a container for all the BodyElements in the
OMMessage
getBody in interface org.apache.axiom.soap.SOAPEnvelopeSOAPBody object for this SOAPEnvelope object or
null if there is noneorg.apache.axiom.om.OMException - if there is a problem obtaining the SOAPBody objectpublic org.apache.axiom.om.OMNode detach()
throws org.apache.axiom.om.OMException
detach in interface org.apache.axiom.om.OMNodedetach in class OMElementImplorg.apache.axiom.om.OMExceptionprotected void checkParent(org.apache.axiom.om.OMElement parent)
throws org.apache.axiom.soap.SOAPProcessingException
SOAPElementcheckParent in class SOAPElementorg.apache.axiom.soap.SOAPProcessingExceptionpublic void internalSerialize(XMLStreamWriter writer2, boolean cache) throws XMLStreamException
OMSerializableImplinternalSerialize in interface org.apache.axiom.om.impl.OMNodeExinternalSerialize in class OMElementImplXMLStreamExceptionpublic boolean hasFault()
hasFault in interface org.apache.axiom.soap.SOAPEnvelopepublic String getSOAPBodyFirstElementLocalName()
getSOAPBodyFirstElementLocalName in interface org.apache.axiom.soap.SOAPEnvelopepublic org.apache.axiom.om.OMNamespace getSOAPBodyFirstElementNS()
getSOAPBodyFirstElementNS in interface org.apache.axiom.soap.SOAPEnvelopeCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.