Class EnvelopeImpl
java.lang.Object
com.sun.xml.messaging.saaj.soap.impl.ElementImpl
com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl
- All Implemented Interfaces:
Envelope,LazyEnvelope,javax.xml.soap.Node,javax.xml.soap.SOAPBodyElement,javax.xml.soap.SOAPElement,javax.xml.soap.SOAPEnvelope,Element,Node
- Direct Known Subclasses:
Envelope1_1Impl,Envelope1_2Impl
Our implementation of the SOAP envelope.
- Author:
- Anil Vijendran (anil@sun.com)
-
Field Summary
FieldsFields inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl
DSIG_NS, elementQName, log, WSU_NS, XENC_NS, XML_URI, XMLNS_URIFields 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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEnvelopeImpl(SOAPDocumentImpl ownerDoc, NameImpl name, boolean createHeader, boolean createBody) protectedEnvelopeImpl(SOAPDocumentImpl ownerDoc, QName name) protectedEnvelopeImpl(SOAPDocumentImpl ownerDoc, javax.xml.soap.Name name) EnvelopeImpl(SOAPDocumentImpl ownerDoc, Element domElement) -
Method Summary
Modifier and TypeMethodDescriptionjavax.xml.soap.SOAPBodyaddBody()javax.xml.soap.SOAPBodyprotected javax.xml.soap.SOAPElementaddElement(QName name) protected javax.xml.soap.SOAPElementaddElement(javax.xml.soap.Name name) javax.xml.soap.SOAPHeaderjavax.xml.soap.SOAPHeaderjavax.xml.soap.NamecreateName(String localName) javax.xml.soap.NamecreateName(String localName, String prefix) javax.xml.soap.NamecreateName(String localName, String prefix, String uri) javax.xml.soap.SOAPBodygetBody()protected abstract NameImplgetBodyName(String prefix) Get the content as a JAXP Source.javax.xml.soap.SOAPHeaderprotected abstract NameImplgetHeaderName(String prefix) getPayloadAttributeValue(String localName) Retrieve payload attribute value without materializing its contentsgetPayloadAttributeValue(QName qName) Retrieve payload attribute value without materializing its contentsRetrieve payload qname without materializing its contentsbooleanisLazy()protected voidprotected voidvoidoutput(OutputStream out) Output the content.voidoutput(OutputStream out, boolean isFastInfoset) Serialize to FI if boolean parameter set.voidsetCharsetEncoding(String value) javax.xml.soap.SOAPElementsetElementQName(QName newName) voidsetOmitXmlDecl(String value) voidsetStaxBridge(StaxBridge bridge) voidsetXmlDecl(String value) voidwriteTo(XMLStreamWriter writer) 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, appendChild, cloneNode, compareDocumentPosition, convertToSoapElement, convertToSoapText, createElement, createElement, createQName, detachNode, doGetNamespacePrefixes, ensureNamespaceIsDeclared, findAndConvertChildElement, findChild, findEncodingStyleAttributeName, getAllAttributes, getAllAttributesAsQNames, getAllAttributesFrom, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributeValue, getAttributeValue, getAttributeValueFrom, getBaseURI, getChildElementNodes, getChildElements, getChildElements, getChildElements, getChildElementsFrom, getChildNodes, getDomElement, getElementName, getElementQName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getFeature, getFirstChild, getLastChild, getLocalName, getLocalPart, getNamespaceAttr, getNamespaceAttrFrom, getNamespaceContextNodes, getNamespaceContextNodes, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPrefix, getPreviousSibling, getQualifiedName, getSchemaTypeInfo, getSoapDocument, getSOAPNamespace, getTagName, getTextContent, getUserData, getValue, getValueNode, getValueNodeStrict, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, importElement, insertBefore, isDefaultNamespace, isEqualNode, isNamespaceQualified, isNamespaceQualified, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, recycleNode, removeAttribute, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeContents, removeNamespaceDeclaration, replaceChild, replaceElementWithSOAPElement, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setEncodingStyle, setEncodingStyleNamespace, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setParentElement, setPrefix, setTextContent, setUserData, setValue, tryToFindEncodingStyleAttributeNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, setIdAttributeNSMethods inherited from interface javax.xml.soap.Node
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValueMethods 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, setUserDataMethods 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
-
Field Details
-
header
-
body
-
-
Constructor Details
-
EnvelopeImpl
-
EnvelopeImpl
-
EnvelopeImpl
protected EnvelopeImpl(SOAPDocumentImpl ownerDoc, NameImpl name, boolean createHeader, boolean createBody) throws javax.xml.soap.SOAPException - Throws:
javax.xml.soap.SOAPException
-
EnvelopeImpl
-
-
Method Details
-
getHeaderName
-
getBodyName
-
addHeader
public javax.xml.soap.SOAPHeader addHeader() throws javax.xml.soap.SOAPException- Specified by:
addHeaderin interfacejavax.xml.soap.SOAPEnvelope- Throws:
javax.xml.soap.SOAPException
-
addHeader
- 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:
getHeaderin interfacejavax.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:
addBodyin interfacejavax.xml.soap.SOAPEnvelope- Throws:
javax.xml.soap.SOAPException
-
addBody
- Throws:
javax.xml.soap.SOAPException
-
addElement
protected javax.xml.soap.SOAPElement addElement(javax.xml.soap.Name name) throws javax.xml.soap.SOAPException - Overrides:
addElementin classElementImpl- Throws:
javax.xml.soap.SOAPException
-
addElement
- Overrides:
addElementin classElementImpl- Throws:
javax.xml.soap.SOAPException
-
getBody
public javax.xml.soap.SOAPBody getBody() throws javax.xml.soap.SOAPException- Specified by:
getBodyin interfacejavax.xml.soap.SOAPEnvelope- Throws:
javax.xml.soap.SOAPException
-
getContent
Description copied from interface:EnvelopeGet the content as a JAXP Source.- Specified by:
getContentin interfaceEnvelope- Returns:
- source
-
createName
public javax.xml.soap.Name createName(String localName, String prefix, String uri) throws javax.xml.soap.SOAPException - Specified by:
createNamein interfacejavax.xml.soap.SOAPEnvelope- Throws:
javax.xml.soap.SOAPException
-
createName
public javax.xml.soap.Name createName(String localName, String prefix) throws javax.xml.soap.SOAPException - Throws:
javax.xml.soap.SOAPException
-
createName
- Specified by:
createNamein interfacejavax.xml.soap.SOAPEnvelope- Throws:
javax.xml.soap.SOAPException
-
setOmitXmlDecl
-
setXmlDecl
-
setCharsetEncoding
-
output
Description copied from interface:EnvelopeOutput the content.- Specified by:
outputin interfaceEnvelope- Parameters:
out- output stream.- Throws:
IOException- in case of an I/O error.
-
output
Serialize to FI if boolean parameter set.- Specified by:
outputin interfaceEnvelope- Parameters:
out- output streamisFastInfoset- true if it is fast infoset.- Throws:
IOException- in case of an I/O error.
-
setElementQName
public javax.xml.soap.SOAPElement setElementQName(QName newName) throws javax.xml.soap.SOAPException - Specified by:
setElementQNamein interfacejavax.xml.soap.SOAPElement- Overrides:
setElementQNamein classElementImpl- Throws:
javax.xml.soap.SOAPException
-
setStaxBridge
- Specified by:
setStaxBridgein interfaceEnvelope- Throws:
javax.xml.soap.SOAPException
-
getStaxBridge
- Specified by:
getStaxBridgein interfaceEnvelope- Throws:
javax.xml.soap.SOAPException
-
getPayloadReader
- Specified by:
getPayloadReaderin interfaceLazyEnvelope- Throws:
javax.xml.soap.SOAPException
-
writeTo
- Specified by:
writeToin interfaceLazyEnvelope- Throws:
XMLStreamExceptionjavax.xml.soap.SOAPException
-
getPayloadQName
Description copied from interface:LazyEnvelopeRetrieve payload qname without materializing its contents- Specified by:
getPayloadQNamein interfaceLazyEnvelope- Returns:
- QName
- Throws:
javax.xml.soap.SOAPException- in case of an error
-
getPayloadAttributeValue
Description copied from interface:LazyEnvelopeRetrieve payload attribute value without materializing its contents- Specified by:
getPayloadAttributeValuein interfaceLazyEnvelope- Parameters:
localName- local name- Returns:
- payload attribute value
- Throws:
javax.xml.soap.SOAPException- in case of an error
-
getPayloadAttributeValue
Description copied from interface:LazyEnvelopeRetrieve payload attribute value without materializing its contents- Specified by:
getPayloadAttributeValuein interfaceLazyEnvelope- Parameters:
qName- QName- Returns:
- payload attribute value
- Throws:
javax.xml.soap.SOAPException- in case of an error
-
isLazy
public boolean isLazy()- Specified by:
isLazyin interfaceLazyEnvelope
-