|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.message.NodeImpl org.apache.axis.message.SOAPElementImpl org.apache.axis.message.SOAPElementAxisImpl org.apache.axis.message.SOAPBodyElementImpl org.apache.axis.message.SOAPBodyElementAxisImpl org.apache.axis.message.SOAPFaultImpl
A Fault body element.
Nested Class Summary |
Nested classes inherited from class org.apache.axis.message.SOAPElementAxisImpl |
SOAPElementAxisImpl.QNameAttr |
Field Summary | |
protected AxisFault |
fault
|
protected String |
prefix
|
Fields inherited from class org.apache.axis.message.SOAPElementAxisImpl |
_isRoot, attributes, context, elementRep, encodingStyle, endEventIndex, href, id, message, name, namespaces, namespaceURI, qNameAttrs, recorder, soapPart, startContentsIndex, startEventIndex, typeQName |
Fields inherited from class org.apache.axis.message.NodeImpl |
domNode, soapParent |
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 |
Constructor Summary | |
SOAPFaultImpl(AxisFault fault)
|
|
SOAPFaultImpl(String namespace,
String localName,
String prefix,
Attributes attrs,
DeserializationContext context)
|
Method Summary | |
javax.xml.soap.Detail |
addDetail()
Creates a Detail object and sets it as the
Detail object for this SOAPFaultException
object. |
javax.xml.soap.Detail |
getDetail()
Returns the detail element for this SOAPFaultException
object. |
AxisFault |
getFault()
|
String |
getFaultActor()
Gets the fault actor for this SOAPFaultException
object. |
String |
getFaultCode()
Gets the fault code for this SOAPFaultException
object. |
javax.xml.soap.Name |
getFaultCodeAsName()
|
String |
getFaultString()
Gets the fault string for this SOAPFaultException
object. |
Locale |
getFaultStringLocale()
|
void |
outputImpl(SerializationContext context)
Subclasses can override |
void |
setFault(AxisFault fault)
|
void |
setFaultActor(String faultActor)
Sets this SOAPFaultException object with the given
fault actor. |
void |
setFaultCode(javax.xml.soap.Name faultCodeQName)
|
void |
setFaultCode(String faultCode)
Sets this SOAPFaultException object with the given
fault code. |
void |
setFaultString(String faultString)
Sets the fault string for this SOAPFaultException
object to the given string. |
void |
setFaultString(String faultString,
Locale locale)
|
Methods inherited from class org.apache.axis.message.SOAPBodyElementAxisImpl |
setParentElement |
Methods inherited from class org.apache.axis.message.NodeImpl |
getNodeName, getValue, hashCode, recycleNode, setNodeValue, setValue, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, 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 javax.xml.soap.Node |
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue |
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 |
Field Detail |
protected AxisFault fault
protected String prefix
Constructor Detail |
public SOAPFaultImpl(String namespace, String localName, String prefix, Attributes attrs, DeserializationContext context) throws AxisFault
public SOAPFaultImpl(AxisFault fault)
Method Detail |
public void outputImpl(SerializationContext context) throws IOException
SOAPElementAxisImpl
outputImpl
in class SOAPElementAxisImpl
IOException
public AxisFault getFault()
public void setFault(AxisFault fault)
public void setFaultCode(String faultCode) throws javax.xml.soap.SOAPException
SOAPFaultException
object with the given
fault code.
Fault codes, which given information about the fault, are defined in the SOAP 1.1 specification.
setFaultCode
in interface javax.xml.soap.SOAPFault
faultCode
- a String
giving
the fault code to be set; must be one of the fault codes
defined in the SOAP 1.1 specification
javax.xml.soap.SOAPException
- if there was an error in
adding the faultCode
to the underlying XML
tree.public String getFaultCode()
SOAPFaultException
object.
getFaultCode
in interface javax.xml.soap.SOAPFault
String
with the fault codepublic void setFaultActor(String faultActor) throws javax.xml.soap.SOAPException
SOAPFaultException
object with the given
fault actor.
The fault actor is the recipient in the message path who caused the fault to happen.
setFaultActor
in interface javax.xml.soap.SOAPFault
faultActor
- a String
identifying the actor that caused this
SOAPFaultException
object
javax.xml.soap.SOAPException
- if there was an error in
adding the faultActor
to the underlying XML
tree.public String getFaultActor()
SOAPFaultException
object.
getFaultActor
in interface javax.xml.soap.SOAPFault
String
giving the actor in the message
path that caused this SOAPFaultException
objectsetFaultActor(java.lang.String)
public void setFaultString(String faultString) throws javax.xml.soap.SOAPException
SOAPFaultException
object to the given string.
setFaultString
in interface javax.xml.soap.SOAPFault
faultString
- a String
giving an explanation of the fault
javax.xml.soap.SOAPException
- if there was an error in
adding the faultString
to the underlying XML
tree.getFaultString()
public String getFaultString()
SOAPFaultException
object.
getFaultString
in interface javax.xml.soap.SOAPFault
String
giving an explanation of the
faultpublic javax.xml.soap.Detail getDetail()
SOAPFaultException
object.
A Detail
object carries
application-specific error information related to
SOAPBodyElement
objects.
getDetail
in interface javax.xml.soap.SOAPFault
Detail
object with
application-specific error informationpublic javax.xml.soap.Detail addDetail() throws javax.xml.soap.SOAPException
Detail
object and sets it as the
Detail
object for this SOAPFaultException
object.
It is illegal to add a detail when the fault already contains a detail. Therefore, this method should be called only after the existing detail has been removed.
addDetail
in interface javax.xml.soap.SOAPFault
Detail
object
javax.xml.soap.SOAPException
- if this
SOAPFaultException
object already contains a valid
Detail
objectpublic void setFaultCode(javax.xml.soap.Name faultCodeQName) throws javax.xml.soap.SOAPException
setFaultCode
in interface javax.xml.soap.SOAPFault
javax.xml.soap.SOAPException
public javax.xml.soap.Name getFaultCodeAsName()
getFaultCodeAsName
in interface javax.xml.soap.SOAPFault
public void setFaultString(String faultString, Locale locale) throws javax.xml.soap.SOAPException
setFaultString
in interface javax.xml.soap.SOAPFault
javax.xml.soap.SOAPException
public Locale getFaultStringLocale()
getFaultStringLocale
in interface javax.xml.soap.SOAPFault
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |