Method Summary |
|
public Detail | addDetail() Creates an optional Detail object and sets it as the
Detail object for this SOAPFault
object.
It is illegal to add a detail when the fault already
contains a detail. |
public void | addFaultReasonText(String text, java.util.Locale locale) Appends or replaces a Reason Text item containing the specified
text message and an xml:lang derived from
locale . |
public void | appendFaultSubcode(QName subcode) Adds a Subcode to the end of the sequence of Subcodes contained by this
SOAPFault . |
public Detail | getDetail() Returns the optional detail element for this SOAPFault
object.
A Detail object carries application-specific error
information, the scope of the error information is restricted to
faults in the SOAPBodyElement objects if this is a
SOAP 1.1 Fault. |
public String | getFaultActor() Gets the fault actor for this SOAPFault object. |
public String | getFaultCode() Gets the fault code for this SOAPFault object. |
public Name | getFaultCodeAsName() Gets the mandatory SOAP 1.1 fault code for this
SOAPFault object as a SAAJ Name object.
The SOAP 1.1 specification requires the value of the "faultcode"
element to be of type QName. |
public QName | getFaultCodeAsQName() Gets the fault code for this
SOAPFault object as a QName object. |
public String | getFaultNode() Returns the optional Node element value for this
SOAPFault object. |
public Iterator | getFaultReasonLocales() Returns an Iterator over a distinct sequence of
Locale s for which there are associated Reason Text items. |
public String | getFaultReasonText(Locale locale) Returns the Reason Text associated with the given Locale . |
public Iterator | getFaultReasonTexts() Returns an Iterator over a sequence of
String objects containing all of the Reason Text items for
this SOAPFault . |
public String | getFaultRole() Returns the optional Role element value for this
SOAPFault object. |
public String | getFaultString() Gets the fault string for this SOAPFault object. |
public Locale | getFaultStringLocale() Gets the locale of the fault string for this SOAPFault
object. |
public Iterator | getFaultSubcodes() Gets the Subcodes for this SOAPFault as an iterator over
QNames . |
public boolean | hasDetail() Returns true if this SOAPFault has a Detail
subelement and false otherwise. |
public void | removeAllFaultSubcodes() Removes any Subcodes that may be contained by this
SOAPFault . |
public void | setFaultActor(String faultActor) Sets this SOAPFault object with the given fault actor. |
public void | setFaultCode(Name faultCodeQName) Sets this SOAPFault object with the given fault code.
Fault codes, which give information about the fault, are defined
in the SOAP 1.1 specification. |
public void | setFaultCode(QName faultCodeQName) Sets this SOAPFault object with the given fault code.
It is preferable to use this method over
SOAPFault.setFaultCode(Name) .
Parameters: faultCodeQName - a QName object giving the faultcode to be set. |
public void | setFaultCode(String faultCode) Sets this SOAPFault object with the give fault code.
Fault codes, which given information about the fault, are defined in
the SOAP 1.1 specification. |
public void | setFaultNode(String uri) Creates or replaces any existing Node element value for
this SOAPFault object. |
public void | setFaultRole(String uri) Creates or replaces any existing Role element value for
this SOAPFault object. |
public void | setFaultString(String faultString) Sets the fault string for this SOAPFault object
to the given string. |
public void | setFaultString(String faultString, Locale locale) Sets the fault string for this SOAPFault object
to the given string and localized to the given locale. |