public class Body1_2Impl extends BodyImpl
Modifier and Type | Field and Description |
---|---|
protected static Logger |
log |
DSIG_NS, elementQName, WSU_NS, XENC_NS, XML_URI, XMLNS_URI
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 |
---|
Body1_2Impl(SOAPDocumentImpl ownerDoc,
Element domElement) |
Body1_2Impl(SOAPDocumentImpl ownerDocument,
String prefix) |
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. |
SOAPElement |
addAttribute(QName name,
String value)
Adds an attribute with the specified name and value to this
SOAPElement object. |
SOAPBodyElement |
addBodyElement(Name name)
Creates a new
SOAPBodyElement object with the specified
name and adds it to this SOAPBody object. |
SOAPBodyElement |
addBodyElement(QName name)
Creates a new
SOAPBodyElement object with the specified
QName and adds it to this SOAPBody object. |
SOAPElement |
addChildElement(Name name)
Creates a new
SOAPElement object initialized with the
given Name object and adds the new element to this
SOAPElement object. |
SOAPElement |
addChildElement(QName name)
Creates a new
SOAPElement object initialized with the given
QName object and adds the new element to this SOAPElement
object. |
protected SOAPElement |
addElement(Name name) |
protected SOAPElement |
addElement(QName name) |
SOAPFault |
addFault()
Creates a new
SOAPFault object and adds it to
this SOAPBody object. |
protected SOAPBodyElement |
createBodyElement(Name name) |
protected SOAPBodyElement |
createBodyElement(QName name) |
protected SOAPFault |
createFaultElement() |
protected QName |
getDefaultFaultCode() |
protected NameImpl |
getFaultName(String name) |
protected boolean |
isFault(SOAPElement child) |
void |
setEncodingStyle(String encodingStyle)
Sets the encoding style for this
SOAPElement object
to one specified. |
addDocument, addFault, addFault, addFault, addFault, convertToSoapElement, extractContentAsDocument, findFault, getChildNodes, getFault, getFirstChild, getFirstChildNoMaterialize, getLastChild, hasChildNodes, hasFault, isLazy, setElementQName, setParentElement
addCDATA, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addNode, addText, addTextNode, appendChild, cloneNode, compareDocumentPosition, 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, getDomElement, getElementName, getElementQName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getFeature, 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, 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, setEncodingStyleNamespace, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setPrefix, setTextContent, setUserData, setValue, tryToFindEncodingStyleAttributeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, createQName, getAllAttributes, getAllAttributesAsQNames, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildElements, getElementName, getElementQName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration
detachNode, getParentElement, getValue, recycleNode, setValue
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
protected static final Logger log
public Body1_2Impl(SOAPDocumentImpl ownerDocument, String prefix)
public Body1_2Impl(SOAPDocumentImpl ownerDoc, Element domElement)
protected NameImpl getFaultName(String name)
getFaultName
in class BodyImpl
protected SOAPBodyElement createBodyElement(Name name)
createBodyElement
in class BodyImpl
protected SOAPBodyElement createBodyElement(QName name)
createBodyElement
in class BodyImpl
protected QName getDefaultFaultCode()
getDefaultFaultCode
in class BodyImpl
public SOAPFault addFault() throws SOAPException
SOAPBody
SOAPFault
object and adds it to
this SOAPBody
object. The new SOAPFault
will
have default values set for the mandatory child elements. The type of
the SOAPFault
will be a SOAP 1.1 or a SOAP 1.2 SOAPFault
depending on the protocol
specified while creating the
MessageFactory
instance.
A SOAPBody
may contain at most one SOAPFault
child element.
addFault
in interface SOAPBody
addFault
in class BodyImpl
SOAPFault
objectSOAPException
- if there is a SOAP errorpublic void setEncodingStyle(String encodingStyle) throws SOAPException
SOAPElement
SOAPElement
object
to one specified.setEncodingStyle
in interface SOAPElement
setEncodingStyle
in class ElementImpl
encodingStyle
- a String
giving the encoding styleSOAPException
- if setting the encodingStyle is invalid for this SOAPElement.SOAPElement.getEncodingStyle()
public SOAPElement addAttribute(Name name, String value) throws SOAPException
SOAPElement
SOAPElement
object.addAttribute
in interface SOAPElement
addAttribute
in class ElementImpl
name
- a Name
object with the name of the attributevalue
- a String
giving the value of the attributeSOAPElement
object into which the attribute was
insertedSOAPException
- if there is an error in creating the
Attribute, or it is invalid to set
an attribute with Name
name
on this SOAPElement.SOAPElement.addAttribute(javax.xml.namespace.QName, String)
public SOAPElement addAttribute(QName name, String value) throws SOAPException
SOAPElement
SOAPElement
object.addAttribute
in interface SOAPElement
addAttribute
in class ElementImpl
name
- a QName
object with the name of the attributevalue
- a String
giving the value of the attributeSOAPElement
object into which the attribute was
insertedSOAPException
- if there is an error in creating the
Attribute, or it is invalid to set
an attribute with QName
qname
on this SOAPElement.SOAPElement.addAttribute(Name, String)
protected boolean isFault(SOAPElement child)
protected SOAPFault createFaultElement()
createFaultElement
in class BodyImpl
public SOAPBodyElement addBodyElement(Name name) throws SOAPException
SOAPBody
SOAPBodyElement
object with the specified
name and adds it to this SOAPBody
object.addBodyElement
in interface SOAPBody
addBodyElement
in class BodyImpl
name
- a Name
object with the name for the new SOAPBodyElement
objectSOAPBodyElement
objectSOAPException
- if a SOAP error occursSOAPBody.addBodyElement(javax.xml.namespace.QName)
public SOAPBodyElement addBodyElement(QName name) throws SOAPException
SOAPBody
SOAPBodyElement
object with the specified
QName and adds it to this SOAPBody
object.addBodyElement
in interface SOAPBody
addBodyElement
in class BodyImpl
name
- a QName
object with the qname for the new
SOAPBodyElement
objectSOAPBodyElement
objectSOAPException
- if a SOAP error occursSOAPBody.addBodyElement(Name)
protected SOAPElement addElement(Name name) throws SOAPException
addElement
in class BodyImpl
SOAPException
protected SOAPElement addElement(QName name) throws SOAPException
addElement
in class BodyImpl
SOAPException
public SOAPElement addChildElement(Name name) throws SOAPException
SOAPElement
SOAPElement
object initialized with the
given Name
object and adds the new element to this
SOAPElement
object.
This method may be deprecated in a future release of SAAJ in favor of addChildElement(javax.xml.namespace.QName)
addChildElement
in interface SOAPElement
addChildElement
in class ElementImpl
name
- a Name
object with the XML name for the
new elementSOAPElement
object that was createdSOAPException
- if there is an error in creating the
SOAPElement
objectSOAPElement.addChildElement(javax.xml.namespace.QName)
public SOAPElement addChildElement(QName name) throws SOAPException
SOAPElement
SOAPElement
object initialized with the given
QName
object and adds the new element to this SOAPElement
object. The namespace, localname and prefix of the new
SOAPElement
are all taken from the qname
argument.addChildElement
in interface SOAPElement
addChildElement
in class ElementImpl
name
- a QName
object with the XML name for the
new elementSOAPElement
object that was createdSOAPException
- if there is an error in creating the
SOAPElement
objectSOAPElement.addChildElement(Name)
Copyright © 2019 JBoss by Red Hat. All rights reserved.