|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.dom.NodeImpl
org.apache.axis2.saaj.NodeImplEx
org.apache.axis2.saaj.SOAPElementImpl
org.apache.axis2.saaj.SOAPEnvelopeImpl
Field Summary |
Fields inherited from class org.apache.axis2.saaj.SOAPElementImpl |
element |
Fields inherited from class org.apache.axis2.saaj.NodeImplEx |
parentElement |
Fields inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
builder, done, factory, FIRSTCHILD, flags, nodeType, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.apache.axiom.om.OMNode |
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
Constructor Summary | |
SOAPEnvelopeImpl(org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl envelope)
|
Method Summary | |
SOAPBody |
addBody()
Creates a SOAPBody object and sets it as the
SOAPBody object for this
SOAPEnvelope object. |
SOAPHeader |
addHeader()
Creates a SOAPHeader object and sets it as the
SOAPHeader object for this
SOAPEnvelope object. |
SOAPElement |
addTextNode(String text)
Creates a new Text object initialized with the given
String and adds it to this SOAPElement object. |
Name |
createName(String localName)
Creates a new Name object initialized with the
given local name. |
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. |
SOAPHeader |
getHeader()
Returns the SOAPHeader object for this
SOAPEnvelope object. |
org.apache.axiom.soap.SOAPEnvelope |
getOMEnvelope()
|
void |
setOwnerDocument(Document document)
|
Methods inherited from class org.apache.axis2.saaj.NodeImplEx |
getParent, getSchemaTypeInfo, getType, recycleNode, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setType |
Methods inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
appendChild, build, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLength, getNextOMSibling, getNodeValue, getOMFactory, getPreviousOMSibling, getTextContent, getUserData, hasAttributes, insertBefore, insertSiblingAfter, insertSiblingBefore, internalSerializeWithCache, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setNodeValue, setOwnerDocument, setPrefix, setPreviousOMSibling, setTextContent, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.soap.Node |
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS |
Constructor Detail |
public SOAPEnvelopeImpl(org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl envelope)
Method Detail |
public void setOwnerDocument(Document document)
public org.apache.axiom.soap.SOAPEnvelope getOMEnvelope()
public Name createName(String localName, String prefix, String uri) throws SOAPException
Name
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 SOAPEnvelope
localName
- a String
giving
the local nameprefix
- a String
giving
the prefix of the namespaceuri
- a String
giving the
URI of the namespace
Name
object initialized with the given
local name, namespace prefix, and namespace URI
SOAPException
- if there is a SOAP errorpublic Name createName(String localName) throws SOAPException
Name
object initialized with the
given local name.
This factory method creates Name
objects
for use in the SOAP/XML document.
createName
in interface SOAPEnvelope
localName
- a String
giving
the local name
Name
object initialized with the given
local name
SOAPException
- if there is a SOAP errorpublic SOAPHeader getHeader() throws SOAPException
SOAPHeader
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 SOAPEnvelope
SOAPHeader
object or
null
if there is none
SOAPException
- if there is a problem
obtaining the SOAPHeader
objectpublic SOAPBody getBody() throws SOAPException
SOAPBody
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 SOAPEnvelope
SOAPBody
object for this
SOAPEnvelope
object or null
if there
is none
SOAPException
- if there is a problem
obtaining the SOAPBody
objectpublic SOAPHeader addHeader() throws SOAPException
SOAPHeader
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 SOAPEnvelope
SOAPHeader
object
SOAPException
- if this
SOAPEnvelope
object already contains a valid
SOAPHeader
objectpublic SOAPBody addBody() throws SOAPException
SOAPBody
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 SOAPEnvelope
SOAPBody
object
SOAPException
- if this
SOAPEnvelope
object already contains a valid
SOAPBody
objectpublic SOAPElement addTextNode(String text) throws SOAPException
SOAPElementImpl
Text
object initialized with the given
String
and adds it to this SOAPElement
object.
addTextNode
in interface SOAPElement
addTextNode
in class SOAPElementImpl
text
- a String
object with the textual content to be added
SOAPElement
object into which
the new Text
object was inserted
SOAPException
- if there is an error in creating the
new Text
object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |