Methods Summary |
---|
public abstract javax.xml.soap.Detail | addDetail()Creates a 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. Therefore, this method should be called
only after the existing detail has been removed.
|
public abstract javax.xml.soap.Detail | getDetail()Returns the detail element for this SOAPFault
object.
A Detail object carries
application-specific error information related to
SOAPBodyElement objects.
|
public abstract java.lang.String | getFaultActor()Gets the fault actor for this SOAPFault
object.
|
public abstract java.lang.String | getFaultCode()Gets the fault code for this SOAPFault
object.
|
public abstract javax.xml.soap.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. This
method returns the content of the element as a QName in the form of a
SAAJ Name object. This method should be used instead of the
getFaultCode() method since it allows applications to easily
access the namespace name without additional parsing.
In the future, a QName object version of this method may also be added.
|
public abstract java.lang.String | getFaultString()Gets the fault string for this SOAPFault
object.
|
public abstract java.util.Locale | getFaultStringLocale()Returns the optional detail element for this SOAPFault
object.
|
public abstract void | setFaultActor(java.lang.String faultActor)Sets this SOAPFault object with the given
fault actor.
The fault actor is the recipient in the message path who
caused the fault to happen.
|
public abstract void | setFaultCode(java.lang.String faultCode)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.
|
public abstract void | setFaultCode(javax.xml.soap.Name name)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. A fault code is mandatory and must be of type
QName . This method provides a convenient way to set a fault
code. For example,
SOAPEnvelope se = ...;
// Create a qualified name in the SOAP namespace with a localName
// of "Client". Note that prefix parameter is optional and is null
// here which causes the implementation to use an appropriate prefix.
Name qname = se.createName("Client", null,
SOAPConstants.URI_NS_SOAP_ENVELOPE);
SOAPFault fault = ...;
fault.setFaultCode(qname);
It is preferable to use this method over setFaultCode(String).
|
public abstract void | setFaultString(java.lang.String faultString, java.util.Locale locale)Sets the fault string for this SOAPFault object to the given
string and localized to the given locale.
|
public abstract void | setFaultString(java.lang.String faultString)Sets the fault string for this SOAPFault
object to the given string.
|