public class SOAPEnvelopeImpl extends SOAPElement implements SOAPEnvelope, OMConstants
| Modifier and Type | Field and Description |
|---|---|
private static javax.xml.namespace.QName |
HEADER_QNAME |
builder, localName, namespace, statefirstChild, lastChildfactory, FIRSTCHILD, flags, HAS_PARENT, SPECIFIEDCDATA_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_URIATTRIBUTE_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_NODECOMPLETE, DISCARDED, INCOMPLETE| Constructor and Description |
|---|
SOAPEnvelopeImpl(ParentNode parentNode,
OMNamespace ns,
OMXMLParserWrapper builder,
OMFactory factory,
boolean generateNSDecl) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(OMNode child,
boolean fromBuilder) |
private void |
checkChild(OMNode child)
Check that a node is allowed as a child of a SOAP envelope.
|
protected void |
checkParent(OMElement parent)
This has to be implemented by all the derived classes to check for the correct parent.
|
protected OMElement |
createClone(OMCloneOptions options,
ParentNode targetParent,
boolean generateNSDecl) |
SOAPBody |
getBody()
Returns the
SOAPBody object associated with this SOAPEnvelope
object. |
SOAPHeader |
getHeader()
Returns the
SOAPHeader object for this SOAPEnvelope object. |
private javax.xml.namespace.QName |
getPayloadQName_Optimized()
Use a parser property to fetch the first element in the body.
|
java.lang.String |
getSOAPBodyFirstElementLocalName()
Retrieves the local name of the first element in the body.
|
OMNamespace |
getSOAPBodyFirstElementNS()
Retrieves the OMNamespace of the first element in the body.
|
SOAPVersion |
getVersion() |
boolean |
hasFault()
Returns true if there is a SOAPFault in the body.
|
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
Inserts newChild before the refChild.
|
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer2,
boolean cache)
Serializes the node.
|
private void |
serializeInternally(NodeImpl child,
MTOMXMLStreamWriter writer) |
setParentaddAttribute, addAttribute, addNamespaceDeclaration, build, buildWithAttachments, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, discard, discarded, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributeValue, getBuilder, getChildElements, getDefaultNamespace, getElementsByTagName, getElementsByTagNameNS, getFirstElement, getIParentNode, getLineNumber, getLocalName, getNamespace, getNamespaceContext, getNamespacesInScope, getNamespaceURI, getNamespaceURI, getNextOMSibling, getNextSibling, getNodeName, getNodeType, getPrefix, getQName, getSchemaTypeInfo, getState, getTagName, getText, getTextAsQName, getTextAsStream, getType, hasAttribute, hasAttributeNS, hasAttributes, internalSetNamespace, isComplete, lookupNamespaceURI, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeChildren, resolveQName, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setBuilder, setComplete, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setPrefix, setText, setText, toString, toStringWithConsume, undeclarePrefix, writeTextToaddChild, appendChild, getChildNodes, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDescendants, getFirstChild, getFirstChildWithName, getFirstOMChild, getFirstOMChildIfAvailable, getLastChild, getLastKnownOMChild, getLength, getSAXSource, getTextContent, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, hasChildNodes, item, removeChild, replaceChild, setFirstChild, setLastChild, setTextContentclone, cloneNode, close, compareDocumentPosition, detach, getBaseURI, getFeature, getNextOMSiblingIfAvailable, getNodeValue, getOMFactory, getOwnerDocument, getParent, getParentNode, getPreviousOMSibling, getPreviousSibling, getUserData, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupPrefix, normalize, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setNextOMSibling, setNodeValue, setParent, setPreviousOMSibling, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getNamespaceContext, getNamespacesInScope, getText, getTextAsQName, getTextAsStream, removeAttribute, resolveQName, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setBuilder, setLineNumber, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsume, undeclarePrefix, writeTextTobuildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBeforeaddChild, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDescendants, getFirstChildWithName, getFirstOMChild, getSAXSource, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeChildrenbuild, close, isComplete, serialize, serialize, serializeAndConsumeclone, getOMFactorygetLocalName, getNamespace, getNamespaceURI, getPrefix, getQName, setLocalNameappendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setTextContent, setUserDatagetLastKnownOMChild, setFirstChild, setLastChildgetFirstOMChildIfAvailablegetNextOMSiblingIfAvailable, internalSerialize, internalSerializeAndConsume, setNextOMSibling, setParent, setPreviousOMSiblingpublic SOAPEnvelopeImpl(ParentNode parentNode, OMNamespace ns, OMXMLParserWrapper builder, OMFactory factory, boolean generateNSDecl)
public SOAPVersion getVersion()
getVersion in interface SOAPEnvelopepublic SOAPHeader getHeader() throws OMException
SOAPHeader object for this SOAPEnvelope object.
This SOAPHeader will just be a container for all the headers in the OMMessage
getHeader in interface SOAPEnvelopeSOAPHeader object or null if there is noneOMException - if there is a problem obtaining the SOAPHeader objectOMExceptionprivate void checkChild(OMNode child)
child - public void addChild(OMNode child, boolean fromBuilder)
addChild in interface OMContainerExaddChild in class ParentNodepublic org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
throws org.w3c.dom.DOMException
ParentNodeinsertBefore in interface org.w3c.dom.NodeinsertBefore in class ParentNodeorg.w3c.dom.DOMExceptionpublic SOAPBody getBody() throws 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 SOAPEnvelopeSOAPBody object for this SOAPEnvelope object or
null if there is noneOMException - if there is a problem obtaining the SOAPBody objectOMExceptionprotected void checkParent(OMElement parent) throws SOAPProcessingException
SOAPElementcheckParent in class SOAPElementSOAPProcessingExceptionpublic void internalSerialize(javax.xml.stream.XMLStreamWriter writer2,
boolean cache)
throws javax.xml.stream.XMLStreamException
OMNodeExOMSerializable.serialize(XMLStreamWriter, boolean) instead.internalSerialize in interface OMNodeExinternalSerialize in class ElementImplcache - indicates if caching should be enabledjavax.xml.stream.XMLStreamExceptionprivate void serializeInternally(NodeImpl child, MTOMXMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionpublic boolean hasFault()
SOAPEnvelopehasFault in interface SOAPEnvelopepublic java.lang.String getSOAPBodyFirstElementLocalName()
SOAPEnvelopegetSOAPBodyFirstElementLocalName in interface SOAPEnvelopepublic OMNamespace getSOAPBodyFirstElementNS()
SOAPEnvelopegetSOAPBodyFirstElementNS in interface SOAPEnvelopenull if the element
has no namespace or the body is emptyprivate javax.xml.namespace.QName getPayloadQName_Optimized()
protected OMElement createClone(OMCloneOptions options, ParentNode targetParent, boolean generateNSDecl)
createClone in class ElementImpl