org.apache.axis.message
public class SOAPFault extends SOAPBodyElement implements SOAPFault
| Field Summary | |
|---|---|
| protected Detail | detail |
| protected AxisFault | fault |
| protected String | prefix |
| Constructor Summary | |
|---|---|
| SOAPFault(String namespace, String localName, String prefix, Attributes attrs, DeserializationContext context) | |
| SOAPFault(AxisFault fault) | |
| Method Summary | |
|---|---|
| Detail | addDetail()
Creates a Detail object and sets it as the
Detail object for this SOAPFaultException
object.
|
| 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. |
| Name | getFaultCodeAsName() |
| String | getFaultString()
Gets the fault string for this SOAPFaultException
object. |
| Locale | getFaultStringLocale() |
| void | outputImpl(SerializationContext context) |
| void | setFault(AxisFault fault) |
| void | setFaultActor(String faultActor)
Sets this SOAPFaultException object with the given
fault actor.
|
| void | setFaultCode(String faultCode)
Sets this SOAPFaultException object with the given
fault code.
|
| void | setFaultCode(Name faultCodeQName) |
| void | setFaultString(String faultString)
Sets the fault string for this SOAPFaultException
object to the given string.
|
| void | setFaultString(String faultString, Locale locale) |
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.
Returns: the new Detail object
Throws: SOAPException if this
SOAPFaultException object already contains a valid
Detail object
SOAPFaultException
object.
A Detail object carries
application-specific error information related to
SOAPBodyElement objects.
Returns: a Detail object with
application-specific error information
SOAPFaultException
object.Returns: a String giving the actor in the message
path that caused this SOAPFaultException object
See Also: setFaultActor(java.lang.String)
SOAPFaultException
object.Returns: a String with the fault code
SOAPFaultException
object.Returns: a String giving an explanation of the
fault
SOAPFaultException object with the given
fault actor.
The fault actor is the recipient in the message path who caused the fault to happen.
Parameters: faultActor a String
identifying the actor that caused this
SOAPFaultException object
Throws: SOAPException if there was an error in
adding the faultActor to the underlying XML
tree.
SOAPFaultException object with the given
fault code.
Fault codes, which given information about the fault, are defined in the SOAP 1.1 specification.
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.
SOAPFaultException
object to the given string.
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()