public abstract class EnvelopeImpl extends ElementImpl implements LazyEnvelope
| Modifier and Type | Field and Description |
|---|---|
protected BodyImpl |
body |
protected HeaderImpl |
header |
DSIG_NS, elementQName, log, WSU_NS, XENC_NS, XML_URI, 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_NODE| Modifier | Constructor and Description |
|---|---|
|
EnvelopeImpl(SOAPDocumentImpl ownerDoc,
Element domElement) |
protected |
EnvelopeImpl(SOAPDocumentImpl ownerDoc,
Name name) |
protected |
EnvelopeImpl(SOAPDocumentImpl ownerDoc,
NameImpl name,
boolean createHeader,
boolean createBody) |
protected |
EnvelopeImpl(SOAPDocumentImpl ownerDoc,
QName name) |
| Modifier and Type | Method and Description |
|---|---|
SOAPBody |
addBody()
Creates a
SOAPBody object and sets it as the
SOAPBody object for this SOAPEnvelope
object. |
SOAPBody |
addBody(String prefix) |
protected SOAPElement |
addElement(Name name) |
protected SOAPElement |
addElement(QName name) |
SOAPHeader |
addHeader()
Creates a
SOAPHeader object and sets it as the
SOAPHeader object for this SOAPEnvelope
object. |
SOAPHeader |
addHeader(String prefix) |
Name |
createName(String localName)
Creates a new
Name object initialized with the
given local name. |
Name |
createName(String localName,
String prefix) |
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. |
protected abstract NameImpl |
getBodyName(String prefix) |
Source |
getContent()
Get the content as a JAXP Source.
|
SOAPHeader |
getHeader()
Returns the
SOAPHeader object for
this SOAPEnvelope object. |
protected abstract NameImpl |
getHeaderName(String prefix) |
String |
getPayloadAttributeValue(QName qName)
Retrieve payload attribute value without materializing its contents
|
String |
getPayloadAttributeValue(String localName)
Retrieve payload attribute value without materializing its contents
|
QName |
getPayloadQName()
Retrieve payload qname without materializing its contents
|
XMLStreamReader |
getPayloadReader() |
StaxBridge |
getStaxBridge() |
boolean |
isLazy() |
protected void |
lookForBody() |
protected void |
lookForHeader() |
void |
output(OutputStream out)
Output the content.
|
void |
output(OutputStream out,
boolean isFastInfoset)
Serialize to FI if boolean parameter set.
|
void |
setCharsetEncoding(String value) |
SOAPElement |
setElementQName(QName newName)
Changes the name of this
Element to newName if
possible. |
void |
setOmitXmlDecl(String value) |
void |
setStaxBridge(StaxBridge bridge) |
void |
setXmlDecl(String value) |
void |
writeTo(XMLStreamWriter writer) |
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, tryToFindEncodingStyleAttributeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAttribute, 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, 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, setUserDataprotected HeaderImpl header
protected BodyImpl body
protected EnvelopeImpl(SOAPDocumentImpl ownerDoc, Name name)
protected EnvelopeImpl(SOAPDocumentImpl ownerDoc, QName name)
protected EnvelopeImpl(SOAPDocumentImpl ownerDoc, NameImpl name, boolean createHeader, boolean createBody) throws SOAPException
SOAPExceptionpublic EnvelopeImpl(SOAPDocumentImpl ownerDoc, Element domElement)
public SOAPHeader addHeader() throws SOAPException
SOAPEnvelopeSOAPHeader 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 SOAPHeader addHeader(String prefix) throws SOAPException
SOAPExceptionprotected void lookForHeader()
throws SOAPException
SOAPExceptionpublic SOAPHeader getHeader() throws SOAPException
SOAPEnvelopeSOAPHeader 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 objectprotected void lookForBody()
throws SOAPException
SOAPExceptionpublic SOAPBody addBody() throws SOAPException
SOAPEnvelopeSOAPBody 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 SOAPBody addBody(String prefix) throws SOAPException
SOAPExceptionprotected SOAPElement addElement(Name name) throws SOAPException
addElement in class ElementImplSOAPExceptionprotected SOAPElement addElement(QName name) throws SOAPException
addElement in class ElementImplSOAPExceptionpublic SOAPBody getBody() throws SOAPException
SOAPEnvelopeSOAPBody 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 Source getContent()
EnvelopegetContent in interface Envelopepublic Name createName(String localName, String prefix, String uri) throws SOAPException
SOAPEnvelopeName 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, String prefix) throws SOAPException
SOAPExceptionpublic Name createName(String localName) throws SOAPException
SOAPEnvelopeName 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 void setOmitXmlDecl(String value)
public void setXmlDecl(String value)
public void setCharsetEncoding(String value)
public void output(OutputStream out) throws IOException
Envelopeoutput in interface Envelopeout - output stream.IOException - in case of an I/O error.public void output(OutputStream out, boolean isFastInfoset) throws IOException
output in interface Envelopeout - output streamisFastInfoset - true if it is fast infoset.IOException - in case of an I/O error.public SOAPElement setElementQName(QName newName) throws SOAPException
SOAPElementElement to newName if
possible. SOAP Defined elements such as SOAPEnvelope, SOAPHeader, SOAPBody
etc. cannot have their names changed using this method. Any attempt to do
so will result in a SOAPException being thrown.
Callers should not rely on the element instance being renamed as is.
Implementations could end up copying the content of the
SOAPElement to a renamed instance.
setElementQName in interface SOAPElementsetElementQName in class ElementImplnewName - the new name for the Element.SOAPException - if changing the name of this Element
is not allowed.public void setStaxBridge(StaxBridge bridge) throws SOAPException
setStaxBridge in interface EnvelopeSOAPExceptionpublic StaxBridge getStaxBridge() throws SOAPException
getStaxBridge in interface EnvelopeSOAPExceptionpublic XMLStreamReader getPayloadReader() throws SOAPException
getPayloadReader in interface LazyEnvelopeSOAPExceptionpublic void writeTo(XMLStreamWriter writer) throws XMLStreamException, SOAPException
writeTo in interface LazyEnvelopeXMLStreamExceptionSOAPExceptionpublic QName getPayloadQName() throws SOAPException
LazyEnvelopegetPayloadQName in interface LazyEnvelopeSOAPException - in case of an errorpublic String getPayloadAttributeValue(String localName) throws SOAPException
LazyEnvelopegetPayloadAttributeValue in interface LazyEnvelopelocalName - local nameSOAPException - in case of an errorpublic String getPayloadAttributeValue(QName qName) throws SOAPException
LazyEnvelopegetPayloadAttributeValue in interface LazyEnvelopeqName - QNameSOAPException - in case of an errorpublic boolean isLazy()
isLazy in interface LazyEnvelopeCopyright © 2019 JBoss by Red Hat. All rights reserved.