|
|||||||||
| Home >> All >> org >> apache >> xmlbeans >> impl >> [ soap overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.xmlbeans.impl.soap
Interface SOAPFault

- All Superinterfaces:
- org.w3c.dom.Element, Node, org.w3c.dom.Node, SOAPBodyElement, SOAPElement
- public interface SOAPFault
- extends SOAPBodyElement
An element in the SOAPBody object that contains
error and/or status information. This information may relate to
errors in the SOAPMessage object or to problems
that are not related to the content in the message itself.
Problems not related to the message itself are generally errors
in processing, such as the inability to communicate with an
upstream server.
The SOAPFault interface provides methods for
retrieving the information contained in a
SOAPFault object and for setting the fault code, the
fault actor, and a string describing the fault. A fault code is
one of the codes defined in the SOAP 1.1 specification that
describe the fault. An actor is an intermediate recipient to
whom a message was routed. The message path may include one or
more actors, or, if no actors are specified, the message goes
only to the default actor, which is the final intended
recipient.
| Field Summary |
| Method Summary | |
Detail |
addDetail()
Creates a Detail object and sets it as the
Detail object for this SOAPFault
object. |
Detail |
getDetail()
Returns the detail element for this SOAPFault
object. |
java.lang.String |
getFaultActor()
Gets the fault actor for this SOAPFault
object. |
java.lang.String |
getFaultCode()
Gets the fault code for this SOAPFault
object. |
Name |
getFaultCodeAsName()
Gets the mandatory SOAP 1.1 fault code for this SOAPFault
object as a SAAJ Name object. |
java.lang.String |
getFaultString()
Gets the fault string for this SOAPFault
object. |
java.util.Locale |
getFaultStringLocale()
Returns the optional detail element for this SOAPFault
object. |
void |
setFaultActor(java.lang.String faultActor)
Sets this SOAPFault object with the given
fault actor. |
void |
setFaultCode(Name name)
Sets this SOAPFault object with the given fault code. |
void |
setFaultCode(java.lang.String faultCode)
Sets this SOAPFault object with the given
fault code. |
void |
setFaultString(java.lang.String faultString)
Sets the fault string for this SOAPFault
object to the given string. |
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. |
| Methods inherited from interface org.apache.xmlbeans.impl.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 org.apache.xmlbeans.impl.soap.Node |
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
| Method Detail |
setFaultCode
public void setFaultCode(java.lang.String faultCode) throws SOAPException
- Sets this
SOAPFaultobject with the given fault code.Fault codes, which given information about the fault, are defined in the SOAP 1.1 specification.
getFaultCode
public java.lang.String getFaultCode()
- Gets the fault code for this
SOAPFaultobject.
setFaultActor
public void setFaultActor(java.lang.String faultActor) throws SOAPException
- Sets this
SOAPFaultobject with the given fault actor.The fault actor is the recipient in the message path who caused the fault to happen.
getFaultActor
public java.lang.String getFaultActor()
- Gets the fault actor for this
SOAPFaultobject.
setFaultString
public void setFaultString(java.lang.String faultString) throws SOAPException
- Sets the fault string for this
SOAPFaultobject to the given string.
getFaultString
public java.lang.String getFaultString()
- Gets the fault string for this
SOAPFaultobject.
getDetail
public Detail getDetail()
- Returns the detail element for this
SOAPFaultobject.A
Detailobject carries application-specific error information related toSOAPBodyElementobjects.
addDetail
public Detail addDetail() throws SOAPException
- Creates a
Detailobject and sets it as theDetailobject for thisSOAPFaultobject.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.
setFaultCode
public void setFaultCode(Name name) throws SOAPException
- Sets this
SOAPFaultobject 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 typeQName. 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).
getFaultCodeAsName
public Name getFaultCodeAsName()
- Gets the mandatory SOAP 1.1 fault code for this
SOAPFaultobject as a SAAJNameobject. 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 SAAJNameobject. This method should be used instead of thegetFaultCode()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.
setFaultString
public void setFaultString(java.lang.String faultString, java.util.Locale locale) throws SOAPException
- Sets the fault string for this
SOAPFaultobject to the given string and localized to the given locale.
getFaultStringLocale
public java.util.Locale getFaultStringLocale()
- Returns the optional detail element for this
SOAPFaultobject.
|
|||||||||
| Home >> All >> org >> apache >> xmlbeans >> impl >> [ soap overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC