public class SOAPBodyImpl extends SOAPElementImpl implements SOAPBody
domNode, soapParent
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 and Description |
---|
SOAPBodyImpl(String prefix,
String namespace) |
Modifier and Type | Method and Description |
---|---|
SOAPElement |
addAttribute(Name name,
String value)
Adds an attribute with the specified name and value to this SOAPElement object.
|
SOAPBodyElement |
addBodyElement(Name name) |
SOAPBodyElement |
addBodyElement(QName qname) |
SOAPElement |
addChildElement(SOAPElement child)
Convert the child into a SOAPBodyElement
|
SOAPBodyElement |
addDocument(Document doc) |
SOAPFault |
addFault() |
SOAPFault |
addFault(Name faultCode,
String faultString) |
SOAPFault |
addFault(Name faultCode,
String faultString,
Locale locale) |
SOAPFault |
addFault(QName faultCode,
String faultString) |
SOAPFault |
addFault(QName faultCode,
String faultString,
Locale locale) |
Node |
appendChild(Node newChild) |
Document |
extractContentAsDocument() |
SOAPBodyElement |
getBodyElement() |
SOAPFault |
getFault() |
boolean |
hasFault() |
Node |
insertBefore(Node newChild,
Node refChild) |
Node |
replaceChild(Node newChild,
Node oldChild) |
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, createQName, getAllAttributes, getAllAttributesAsQNames, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildElements, getElementName, getElementQName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getFirstChildElementByLocalName, getNamespacePrefixes, getNamespaceURI, getSchemaTypeInfo, getSOAPEnvelope, getTagName, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, removeAttribute, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeContents, removeNamespaceDeclaration, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setElementQName, setElementQNameInternal, setEncodingStyle, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setPrefix, writeElement, writeElementContent
cloneNode, compareDocumentPosition, detachNode, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, getValue, hasAttributes, hasChildNodes, hashCode, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, recycleNode, removeChild, setNodeValue, setParentElement, setTextContent, setUserData, setValue, toString
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
addAttribute, 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, setElementQName, setEncodingStyle
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, setNodeValue, setPrefix, setTextContent, setUserData
public SOAPElement addChildElement(SOAPElement child) throws SOAPException
addChildElement
in interface SOAPElement
addChildElement
in class SOAPElementImpl
child
- the SOAPElement to be added as a new childSOAPException
- if there was an error in adding this element as a childpublic SOAPBodyElement addBodyElement(Name name) throws SOAPException
addBodyElement
in interface SOAPBody
SOAPException
public SOAPBodyElement addBodyElement(QName qname) throws SOAPException
addBodyElement
in interface SOAPBody
SOAPException
public SOAPBodyElement addDocument(Document doc) throws SOAPException
addDocument
in interface SOAPBody
SOAPException
public SOAPFault addFault() throws SOAPException
addFault
in interface SOAPBody
SOAPException
public SOAPFault addFault(Name faultCode, String faultString) throws SOAPException
addFault
in interface SOAPBody
SOAPException
public SOAPFault addFault(QName faultCode, String faultString) throws SOAPException
addFault
in interface SOAPBody
SOAPException
public SOAPFault addFault(Name faultCode, String faultString, Locale locale) throws SOAPException
addFault
in interface SOAPBody
SOAPException
public SOAPFault addFault(QName faultCode, String faultString, Locale locale) throws SOAPException
addFault
in interface SOAPBody
SOAPException
public SOAPBodyElement getBodyElement()
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
appendChild
in class NodeImpl
DOMException
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
insertBefore
in class NodeImpl
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
replaceChild
in class NodeImpl
DOMException
public SOAPElement addAttribute(Name name, String value) throws SOAPException
SOAPElementImpl
addAttribute
in interface SOAPElement
addAttribute
in class SOAPElementImpl
name
- a Name object with the name of the attributevalue
- a String giving the value of the attributeSOAPException
- if there is an error in creating the Attributepublic Document extractContentAsDocument() throws SOAPException
extractContentAsDocument
in interface SOAPBody
SOAPException
Copyright © 2012 JBoss, by Red Hat. All Rights Reserved.