org.apache.axis2.saaj
Class SOAPFaultImpl
java.lang.Object
org.apache.axis2.om.impl.dom.NodeImpl
org.apache.axis2.saaj.NodeImplEx
org.apache.axis2.saaj.SOAPElementImpl
org.apache.axis2.saaj.SOAPBodyElementImpl
org.apache.axis2.saaj.SOAPFaultImpl
- All Implemented Interfaces:
- Cloneable, Element, Node, Node, NodeList, OMNode, OMNodeEx, SOAPBodyElement, SOAPElement, SOAPFault
- public class SOAPFaultImpl
- extends SOAPBodyElementImpl
- implements SOAPFault
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 |
Methods inherited from class org.apache.axis2.saaj.SOAPElementImpl |
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, discard, getAllAttributes, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributeValue, getChildElements, getChildElements, getChildNodes, getElement, getElementName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getFirstChild, getLastChild, getNamespacePrefixes, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentElement, getPreviousSibling, getTagName, getValue, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, hasChildNodes, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeContents, removeNamespaceDeclaration, serialize, serializeAndConsume, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setEncodingStyle, setParent |
Methods inherited from class org.apache.axis2.om.impl.dom.NodeImpl |
appendChild, build, cloneNode, compareDocumentPosition, detach, getAttributes, getBaseURI, getFeature, getLength, getLocalName, getNamespaceURI, getNextOMSibling, getNodeValue, getParentNode, getPrefix, getPreviousOMSibling, getTextContent, getUserData, hasAttributes, insertBefore, insertSiblingAfter, insertSiblingBefore, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeWithCache, 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.SOAPElement |
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, getAllAttributes, getAttributeValue, getChildElements, getChildElements, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStyle |
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 |
fault
protected SOAPFault fault
SOAPFaultImpl
public SOAPFaultImpl(SOAPFault element)
- Parameters:
element
-
setFaultCode
public void setFaultCode(String faultCode)
throws SOAPException
- Sets this
SOAPFault
object with the given
fault code.
Fault codes, which given information about the fault,
are defined in the SOAP 1.1 specification.
- Specified by:
setFaultCode
in interface SOAPFault
- Parameters:
faultCode
- a String
giving
the fault code to be set; must be one of the fault codes
defined in the SOAP 1.1 specification
- Throws:
SOAPException
- if there was an error in
adding the faultCode
to the underlying XML
tree.- See Also:
getFaultCode()
getFaultCode
public String getFaultCode()
- Gets the fault code for this
SOAPFault
object.
- Specified by:
getFaultCode
in interface SOAPFault
- Returns:
- a
String
with the fault code - See Also:
setFaultCode(java.lang.String)
setFaultActor
public void setFaultActor(String faultActor)
throws SOAPException
- Specified by:
setFaultActor
in interface SOAPFault
- Throws:
SOAPException
getFaultActor
public String getFaultActor()
- Specified by:
getFaultActor
in interface SOAPFault
setFaultString
public void setFaultString(String faultString)
throws SOAPException
- Sets the fault string for this
SOAPFault
object to the given string.
- Specified by:
setFaultString
in interface SOAPFault
- Parameters:
faultString
- a String
giving an explanation of the fault
- Throws:
SOAPException
- if there was an error in
adding the faultString
to the underlying XML
tree.- See Also:
getFaultString()
getFaultString
public String getFaultString()
- Specified by:
getFaultString
in interface SOAPFault
getDetail
public Detail getDetail()
- Specified by:
getDetail
in interface SOAPFault
addDetail
public Detail addDetail()
throws SOAPException
- Specified by:
addDetail
in interface SOAPFault
- Throws:
SOAPException
setFaultCode
public void setFaultCode(Name name)
throws SOAPException
- Specified by:
setFaultCode
in interface SOAPFault
- Throws:
SOAPException
getFaultCodeAsName
public Name getFaultCodeAsName()
- Specified by:
getFaultCodeAsName
in interface SOAPFault
setFaultString
public void setFaultString(String faultString,
Locale locale)
throws SOAPException
- Specified by:
setFaultString
in interface SOAPFault
- Throws:
SOAPException
getFaultStringLocale
public Locale getFaultStringLocale()
- Specified by:
getFaultStringLocale
in interface SOAPFault