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, org.apache.ws.commons.om.OMNode, org.apache.ws.commons.om.impl.OMNodeEx, SOAPBodyElement, SOAPElement, SOAPFault
- public class SOAPFaultImpl
- extends SOAPBodyElementImpl
- implements SOAPFault
Field Summary |
protected org.apache.ws.commons.soap.SOAPFault |
fault
|
Fields inherited from class org.apache.axis2.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.ws.commons.om.OMNode |
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
Constructor Summary |
SOAPFaultImpl(org.apache.ws.commons.soap.SOAPFault fault)
|
Methods inherited from class org.apache.axis2.saaj.SOAPElementImpl |
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, detach, detachNode, discard, getAllAttributes, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributeValue, getChildNodes, getElement, getElementName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getFirstChild, getLastChild, getLocalName, getNamespacePrefixes, getNamespaceURI, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTagName, getValue, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, hasChildNodes, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeContents, removeNamespaceDeclaration, serialize, serializeAndConsume, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setEncodingStyle, setParent, setValue |
Methods inherited from class org.apache.axis2.om.impl.dom.NodeImpl |
appendChild, build, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLength, getNextOMSibling, getNodeValue, getOMFactory, 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, 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 org.apache.ws.commons.soap.SOAPFault fault
SOAPFaultImpl
public SOAPFaultImpl(org.apache.ws.commons.soap.SOAPFault fault)
- Parameters:
fault
-
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
setFaultCode
public void setFaultCode(Name name)
throws SOAPException
- Specified by:
setFaultCode
in interface SOAPFault
- Throws:
SOAPException
addDetail
public Detail addDetail()
throws SOAPException
- Specified by:
addDetail
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
getChildElements
public Iterator getChildElements(Name name)
- Specified by:
getChildElements
in interface SOAPElement
- Overrides:
getChildElements
in class SOAPElementImpl
getChildElements
public Iterator getChildElements()
- Description copied from class:
SOAPElementImpl
- Returns an iterator over all the immediate content of
this element. This includes
Text
objects as well
as SOAPElement
objects.
- Specified by:
getChildElements
in interface SOAPElement
- Overrides:
getChildElements
in class SOAPElementImpl
- Returns:
- an iterator over
Text
and SOAPElement
contained within this SOAPElement
object