com.sun.xml.messaging.saaj.soap.impl
Class EnvelopeImpl
java.lang.Object
com.sun.org.apache.xerces.internal.dom.NodeImpl
com.sun.org.apache.xerces.internal.dom.ChildNode
com.sun.org.apache.xerces.internal.dom.ParentNode
com.sun.org.apache.xerces.internal.dom.ElementImpl
com.sun.org.apache.xerces.internal.dom.ElementNSImpl
com.sun.xml.messaging.saaj.soap.impl.ElementImpl
com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl
- All Implemented Interfaces:
- Envelope, LazyEnvelope, java.io.Serializable, java.lang.Cloneable, javax.xml.soap.SOAPBodyElement, javax.xml.soap.SOAPElement, javax.xml.soap.SOAPEnvelope, org.w3c.dom.Element, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.TypeInfo
- Direct Known Subclasses:
- Envelope1_1Impl, Envelope1_2Impl
public abstract class EnvelopeImpl
- extends ElementImpl
- implements LazyEnvelope
Our implementation of the SOAP envelope.
- Author:
- Anil Vijendran (anil@sun.com)
- See Also:
- Serialized Form
| Fields inherited from class com.sun.org.apache.xerces.internal.dom.ElementNSImpl |
localName, namespaceURI |
| Fields inherited from class com.sun.org.apache.xerces.internal.dom.ElementImpl |
attributes, name |
| Fields inherited from class com.sun.org.apache.xerces.internal.dom.ParentNode |
firstChild, fNodeListCache, ownerDocument |
| Fields inherited from class com.sun.org.apache.xerces.internal.dom.ChildNode |
nextSibling, previousSibling |
| Fields inherited from class com.sun.org.apache.xerces.internal.dom.NodeImpl |
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE |
| Fields inherited from interface org.w3c.dom.Node |
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 |
| Fields inherited from interface org.w3c.dom.TypeInfo |
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
| Methods inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl |
addAttribute, addAttribute, addCDATA, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addNode, addText, addTextNode, circumventBug5034339, convertToSoapElement, createElement, createElement, createQName, detachNode, doGetNamespacePrefixes, ensureNamespaceIsDeclared, findAndConvertChildElement, findChild, findEncodingStyleAttributeName, getAllAttributes, getAllAttributesAsQNames, getAllAttributesFrom, getAttributeValue, getAttributeValue, getAttributeValueFrom, getChildElementNodes, getChildElements, getChildElements, getChildElements, getChildElementsFrom, getElementName, getElementQName, getEncodingStyle, getLocalPart, getNamespaceAttr, getNamespaceAttrFrom, getNamespaceContextNodes, getNamespaceContextNodes, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getOwnerDocument, getParentElement, getPrefix, getQualifiedName, getSOAPNamespace, getValue, getValueNode, getValueNodeStrict, getVisibleNamespacePrefixes, importElement, isNamespaceQualified, isNamespaceQualified, recycleNode, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration, replaceElementWithSOAPElement, setAttributeNS, setEncodingStyle, setEncodingStyleNamespace, setParentElement, setValue, tryToFindEncodingStyleAttributeName |
| Methods inherited from class com.sun.org.apache.xerces.internal.dom.ElementNSImpl |
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setType, setValues |
| Methods inherited from class com.sun.org.apache.xerces.internal.dom.ElementImpl |
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData |
| Methods inherited from class com.sun.org.apache.xerces.internal.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent, synchronizeChildren |
| Methods inherited from class com.sun.org.apache.xerces.internal.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling |
| Methods inherited from class com.sun.org.apache.xerces.internal.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.xml.soap.SOAPElement |
addAttribute, addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, createQName, getAllAttributes, getAllAttributesAsQNames, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildElements, getElementName, getElementQName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStyle |
| Methods inherited from interface javax.xml.soap.Node |
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue |
| 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 |
header
protected HeaderImpl header
body
protected BodyImpl body
EnvelopeImpl
protected EnvelopeImpl(SOAPDocumentImpl ownerDoc,
javax.xml.soap.Name name)
EnvelopeImpl
protected EnvelopeImpl(SOAPDocumentImpl ownerDoc,
javax.xml.namespace.QName name)
EnvelopeImpl
protected EnvelopeImpl(SOAPDocumentImpl ownerDoc,
NameImpl name,
boolean createHeader,
boolean createBody)
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
getHeaderName
protected abstract NameImpl getHeaderName(java.lang.String prefix)
getBodyName
protected abstract NameImpl getBodyName(java.lang.String prefix)
addHeader
public javax.xml.soap.SOAPHeader addHeader()
throws javax.xml.soap.SOAPException
- Specified by:
addHeader in interface javax.xml.soap.SOAPEnvelope
- Throws:
javax.xml.soap.SOAPException
addHeader
public javax.xml.soap.SOAPHeader addHeader(java.lang.String prefix)
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
lookForHeader
protected void lookForHeader()
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
getHeader
public javax.xml.soap.SOAPHeader getHeader()
throws javax.xml.soap.SOAPException
- Specified by:
getHeader in interface javax.xml.soap.SOAPEnvelope
- Throws:
javax.xml.soap.SOAPException
lookForBody
protected void lookForBody()
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
addBody
public javax.xml.soap.SOAPBody addBody()
throws javax.xml.soap.SOAPException
- Specified by:
addBody in interface javax.xml.soap.SOAPEnvelope
- Throws:
javax.xml.soap.SOAPException
addBody
public javax.xml.soap.SOAPBody addBody(java.lang.String prefix)
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
addElement
protected javax.xml.soap.SOAPElement addElement(javax.xml.soap.Name name)
throws javax.xml.soap.SOAPException
- Overrides:
addElement in class ElementImpl
- Throws:
javax.xml.soap.SOAPException
addElement
protected javax.xml.soap.SOAPElement addElement(javax.xml.namespace.QName name)
throws javax.xml.soap.SOAPException
- Overrides:
addElement in class ElementImpl
- Throws:
javax.xml.soap.SOAPException
getBody
public javax.xml.soap.SOAPBody getBody()
throws javax.xml.soap.SOAPException
- Specified by:
getBody in interface javax.xml.soap.SOAPEnvelope
- Throws:
javax.xml.soap.SOAPException
getContent
public javax.xml.transform.Source getContent()
- Description copied from interface:
Envelope
- Get the content as a JAXP Source.
- Specified by:
getContent in interface Envelope
createName
public javax.xml.soap.Name createName(java.lang.String localName,
java.lang.String prefix,
java.lang.String uri)
throws javax.xml.soap.SOAPException
- Specified by:
createName in interface javax.xml.soap.SOAPEnvelope
- Throws:
javax.xml.soap.SOAPException
createName
public javax.xml.soap.Name createName(java.lang.String localName,
java.lang.String prefix)
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
createName
public javax.xml.soap.Name createName(java.lang.String localName)
throws javax.xml.soap.SOAPException
- Specified by:
createName in interface javax.xml.soap.SOAPEnvelope
- Throws:
javax.xml.soap.SOAPException
setOmitXmlDecl
public void setOmitXmlDecl(java.lang.String value)
setXmlDecl
public void setXmlDecl(java.lang.String value)
setCharsetEncoding
public void setCharsetEncoding(java.lang.String value)
output
public void output(java.io.OutputStream out)
throws java.io.IOException
- Description copied from interface:
Envelope
- Output the content.
- Specified by:
output in interface Envelope
- Throws:
java.io.IOException
output
public void output(java.io.OutputStream out,
boolean isFastInfoset)
throws java.io.IOException
- Serialize to FI if boolean parameter set.
- Specified by:
output in interface Envelope
- Throws:
java.io.IOException
setElementQName
public javax.xml.soap.SOAPElement setElementQName(javax.xml.namespace.QName newName)
throws javax.xml.soap.SOAPException
- Specified by:
setElementQName in interface javax.xml.soap.SOAPElement- Overrides:
setElementQName in class ElementImpl
- Throws:
javax.xml.soap.SOAPException
setStaxBridge
public void setStaxBridge(StaxBridge bridge)
throws javax.xml.soap.SOAPException
- Specified by:
setStaxBridge in interface Envelope
- Throws:
javax.xml.soap.SOAPException
getStaxBridge
public StaxBridge getStaxBridge()
throws javax.xml.soap.SOAPException
- Specified by:
getStaxBridge in interface Envelope
- Throws:
javax.xml.soap.SOAPException
getPayloadReader
public javax.xml.stream.XMLStreamReader getPayloadReader()
throws javax.xml.soap.SOAPException
- Specified by:
getPayloadReader in interface LazyEnvelope
- Throws:
javax.xml.soap.SOAPException
writeTo
public void writeTo(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException,
javax.xml.soap.SOAPException
- Specified by:
writeTo in interface LazyEnvelope
- Throws:
javax.xml.stream.XMLStreamException
javax.xml.soap.SOAPException
getPayloadQName
public javax.xml.namespace.QName getPayloadQName()
throws javax.xml.soap.SOAPException
- Description copied from interface:
LazyEnvelope
- Retrieve payload qname without materializing its contents
- Specified by:
getPayloadQName in interface LazyEnvelope
- Returns:
-
- Throws:
javax.xml.soap.SOAPException
getPayloadAttributeValue
public java.lang.String getPayloadAttributeValue(java.lang.String localName)
throws javax.xml.soap.SOAPException
- Description copied from interface:
LazyEnvelope
- Retrieve payload attribute value without materializing its contents
- Specified by:
getPayloadAttributeValue in interface LazyEnvelope
- Returns:
-
- Throws:
javax.xml.soap.SOAPException
getPayloadAttributeValue
public java.lang.String getPayloadAttributeValue(javax.xml.namespace.QName qName)
throws javax.xml.soap.SOAPException
- Description copied from interface:
LazyEnvelope
- Retrieve payload attribute value without materializing its contents
- Specified by:
getPayloadAttributeValue in interface LazyEnvelope
- Returns:
-
- Throws:
javax.xml.soap.SOAPException
isLazy
public boolean isLazy()
- Specified by:
isLazy in interface LazyEnvelope
Copyright © 2014 Oracle. All Rights Reserved.