public class SOAPFaultImpl extends SOAPBodyElementDoc implements SOAPFault
Modifier and Type | Field and Description |
---|---|
static Set<QName> |
soap11FaultCodes |
static Set<QName> |
soap12FaultCodes |
GENERIC_PARAM_NAME, GENERIC_RETURN_NAME, soapContent
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 |
---|
SOAPFaultImpl() |
SOAPFaultImpl(SOAPElementImpl element) |
SOAPFaultImpl(String prefix,
String namespace) |
Modifier and Type | Method and Description |
---|---|
SOAPElement |
addChildElement(SOAPElement child)
Add a SOAPElement as a child of this SOAPElement instance.
|
Detail |
addDetail()
Creates an optional Detail object and sets it as the Detail object for this SOAPFault object.
|
void |
addFaultReasonText(String text,
Locale locale) |
void |
appendFaultSubcode(QName subcode) |
Detail |
getDetail()
Returns the optional detail element for this SOAPFault object.
|
String |
getFaultActor()
Gets the fault actor for this SOAPFault object.
|
String |
getFaultCode()
Gets the fault code for this SOAPFault object.
|
Name |
getFaultCodeAsName()
Gets the mandatory SOAP 1.1 fault code for this SOAPFault object as a SAAJ Name object.
|
QName |
getFaultCodeAsQName() |
String |
getFaultNode() |
Iterator |
getFaultReasonLocales() |
String |
getFaultReasonText(Locale locale) |
Iterator |
getFaultReasonTexts() |
String |
getFaultRole() |
String |
getFaultString()
Gets the fault string for this SOAPFault object.
|
Locale |
getFaultStringLocale()
Gets the locale of the fault string for this SOAPFault object.
|
Iterator |
getFaultSubcodes() |
boolean |
hasDetail() |
void |
removeAllFaultSubcodes() |
void |
setFaultActor(String faultActor)
Sets this SOAPFault object with the given fault actor.
|
void |
setFaultCode(Name faultCode)
Sets this SOAPFault object with the given fault code.
|
void |
setFaultCode(QName faultCode) |
void |
setFaultCode(String faultCode)
Sets this SOAPFault object with the give fault code.
|
void |
setFaultNode(String uri) |
void |
setFaultRole(String uri) |
void |
setFaultString(String faultString)
Sets the fault string for this SOAPFault object to the given string.
|
void |
setFaultString(String faultString,
Locale locale)
Sets the fault string for this SOAPFault object to the given string and localized to the given locale.
|
void |
writeElement(Writer writer)
The default implementation uses a DOMWriter.
|
transitionTo
accept, addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, appendChild, cloneNode, getAllAttributes, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributeValue, getChildElements, getChildElements, getChildNodes, getElementName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getFirstChild, getJavaType, getLastChild, getNamespacePrefixes, getNamespaceURI, getNextSibling, getObjectValue, getParamMetaData, getPreviousSibling, getSchemaTypeInfo, getTagName, getValue, getVisibleNamespacePrefixes, getXMLFragment, getXmlType, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeContents, removeNamespaceDeclaration, replaceChild, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setObjectValue, setParamMetaData, setValue, setXMLFragment
addAttribute, addChildElement, createQName, getAllAttributesAsQNames, getAttributeValue, getChildElements, getElementQName, getFirstChildElementByLocalName, getSOAPEnvelope, removeAttribute, setElementQName, setElementQNameInternal, setEncodingStyle, setPrefix, writeElementContent
compareDocumentPosition, detachNode, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getTextContent, getUserData, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, recycleNode, setNodeValue, setParentElement, setTextContent, setUserData, toString
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
addAttribute, 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
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, setUserData
public SOAPFaultImpl() throws SOAPException
SOAPException
public SOAPFaultImpl(String prefix, String namespace) throws SOAPException
SOAPException
public SOAPFaultImpl(SOAPElementImpl element)
public String getFaultCode()
getFaultCode
in interface SOAPFault
public Name getFaultCodeAsName()
getFaultCodeAsName
in interface SOAPFault
public QName getFaultCodeAsQName()
getFaultCodeAsQName
in interface SOAPFault
public void setFaultCode(String faultCode) throws SOAPException
setFaultCode
in interface SOAPFault
SOAPException
public void setFaultCode(Name faultCode) throws SOAPException
setFaultCode
in interface SOAPFault
SOAPException
public void setFaultCode(QName faultCode) throws SOAPException
setFaultCode
in interface SOAPFault
SOAPException
public Iterator getFaultSubcodes()
getFaultSubcodes
in interface SOAPFault
public void appendFaultSubcode(QName subcode) throws SOAPException
appendFaultSubcode
in interface SOAPFault
SOAPException
public void removeAllFaultSubcodes()
removeAllFaultSubcodes
in interface SOAPFault
public String getFaultString()
getFaultString
in interface SOAPFault
public Locale getFaultStringLocale()
getFaultStringLocale
in interface SOAPFault
public void setFaultString(String faultString) throws SOAPException
setFaultString
in interface SOAPFault
SOAPException
public void setFaultString(String faultString, Locale locale) throws SOAPException
setFaultString
in interface SOAPFault
SOAPException
public Iterator getFaultReasonTexts() throws SOAPException
getFaultReasonTexts
in interface SOAPFault
SOAPException
public Iterator getFaultReasonLocales() throws SOAPException
getFaultReasonLocales
in interface SOAPFault
SOAPException
public String getFaultReasonText(Locale locale) throws SOAPException
getFaultReasonText
in interface SOAPFault
SOAPException
public void addFaultReasonText(String text, Locale locale) throws SOAPException
addFaultReasonText
in interface SOAPFault
SOAPException
public String getFaultActor()
getFaultActor
in interface SOAPFault
public void setFaultActor(String faultActor) throws SOAPException
setFaultActor
in interface SOAPFault
SOAPException
public String getFaultRole()
getFaultRole
in interface SOAPFault
public void setFaultRole(String uri) throws SOAPException
setFaultRole
in interface SOAPFault
SOAPException
public String getFaultNode()
getFaultNode
in interface SOAPFault
public void setFaultNode(String uri) throws SOAPException
setFaultNode
in interface SOAPFault
SOAPException
public Detail getDetail()
public Detail addDetail() throws SOAPException
addDetail
in interface SOAPFault
SOAPException
public SOAPElement addChildElement(SOAPElement child) throws SOAPException
SOAPElementImpl
addChildElement
in interface SOAPElement
addChildElement
in class SOAPContentElement
child
- the SOAPElement to be added as a new childSOAPException
- if there was an error in adding this element as a childpublic void writeElement(Writer writer)
SOAPElementImpl
writeElement
in class SOAPContentElement
Copyright © 2012 JBoss, by Red Hat. All Rights Reserved.