|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.dom.NodeImpl
org.apache.axis2.saaj.NodeImplEx
org.apache.axis2.saaj.SOAPElementImpl
org.apache.axis2.saaj.SOAPBodyElementImpl
org.apache.axis2.saaj.SOAPFaultImpl
public class SOAPFaultImpl
Field Summary | |
---|---|
protected org.apache.axiom.soap.SOAPFault |
fault
|
Fields inherited from class org.apache.axis2.saaj.SOAPElementImpl |
---|
element |
Fields inherited from class org.apache.axis2.saaj.NodeImplEx |
---|
parentElement |
Fields inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
---|
builder, done, factory, FIRSTCHILD, flags, HAS_PARENT, SPECIFIED |
Constructor Summary | |
---|---|
SOAPFaultImpl(org.apache.axiom.soap.SOAPFault fault)
|
Method Summary | |
---|---|
Detail |
addDetail()
|
void |
addFaultReasonText(String text,
Locale locale)
Appends or replaces a Reason Text item containing the specified text message and an xml:lang derived from locale. |
void |
appendFaultSubcode(QName subcode)
Adds a Subcode to the end of the sequence of Subcodes contained by this SOAPFault. |
Iterator |
getChildElements()
Returns an iterator over all the immediate content of this element. |
Iterator |
getChildElements(Name name)
|
Detail |
getDetail()
|
String |
getFaultActor()
|
String |
getFaultCode()
Gets the fault code for this SOAPFault object. |
Name |
getFaultCodeAsName()
|
QName |
getFaultCodeAsQName()
Gets the fault code for this SOAPFault object as a QName object. |
String |
getFaultNode()
Returns the optional Node element value for this SOAPFault object. |
Iterator |
getFaultReasonLocales()
Returns an Iterator over a distinct sequence of Locales for which there are associated Reason Text items. |
String |
getFaultReasonText(Locale locale)
Returns the Reason Text associated with the given Locale. |
Iterator |
getFaultReasonTexts()
Returns an Iterator over a sequence of String objects containing all of the Reason Text items for this SOAPFault. |
String |
getFaultRole()
Returns the optional Role element value for this SOAPFault object. |
String |
getFaultString()
|
Locale |
getFaultStringLocale()
Gets the locale of the fault string for this SOAPFault object. |
Iterator |
getFaultSubcodes()
Gets the Subcodes for this SOAPFault as an iterator over QNames. |
boolean |
hasDetail()
Returns true if this SOAPFault has a Detail subelement and false otherwise. |
void |
removeAllFaultSubcodes()
Removes any Subcodes that may be contained by this SOAPFault. |
void |
setFaultActor(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. |
void |
setFaultCode(Name faultCodeName)
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. |
void |
setFaultCode(QName qname)
Sets this SOAPFault object with the given fault code. |
void |
setFaultCode(String faultCode)
Sets this SOAPFault object with the given fault code. |
void |
setFaultNode(String s)
Creates or replaces any existing Node element value for this SOAPFault object. |
void |
setFaultRole(String uri)
Creates or replaces any existing Role element value for this SOAPFault object. |
void |
setFaultString(String faultString)
Sets the fault string for this SOAPFault object to the given string. |
void |
setFaultString(String faultString,
Locale locale)
Sets the fault string for this SOAPFault object to the given string. |
Methods inherited from class org.apache.axis2.saaj.SOAPBodyElementImpl |
---|
addAttribute, addChildElement, createQName, getAllAttributesAsQNames, getAttributeValue, getChildElements, getElementQName, removeAttribute, setElementQName, setParentElement |
Methods inherited from class org.apache.axis2.saaj.NodeImplEx |
---|
getParent, getSchemaTypeInfo, getType, recycleNode, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setType |
Methods inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
---|
cloneNode, compareDocumentPosition, getBaseURI, getFeature, getLength, getNodeValue, getOMFactory, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.xml.soap.Node |
---|
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue |
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 |
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 |
Field Detail |
---|
protected org.apache.axiom.soap.SOAPFault fault
Constructor Detail |
---|
public SOAPFaultImpl(org.apache.axiom.soap.SOAPFault fault)
fault
- Method Detail |
---|
public void setFaultCode(String faultCode) throws SOAPException
SOAPFault
object with the given fault code.
Fault codes, which given information about the fault, are defined in the SOAP 1.1
specification. This element is mandatory in SOAP 1.1. Because the fault code is required to
be a QName it is preferable to use the setFaultCode(Name)form of this method.
setFaultCode
in interface SOAPFault
faultCode
- - a String giving the fault code to be set. It must be of the form
"prefix:localName" where the prefix has been defined in a namespace
declaration.
SOAPException
- - if there was an error in adding the faultCode to the underlying XML
tree.setFaultCode(Name), getFaultCode(),SOAPElement.addNamespaceDeclaration(String, String)
public String getFaultCode()
SOAPFault
object.
getFaultCode
in interface SOAPFault
String
with the fault codesetFaultCode(java.lang.String)
public void setFaultActor(String faultActor) throws SOAPException
setFaultActor
in interface SOAPFault
faultActor
- - a String identifying the actor that caused this SOAPFault object
SOAPException
- - if there was an error in adding the faultActor to the underlying XML
tree.public String getFaultActor()
getFaultActor
in interface SOAPFault
public void setFaultString(String faultString) throws SOAPException
SOAPFault
object to the given string.
setFaultString
in interface SOAPFault
faultString
- a String
giving an explanation of the fault
SOAPException
- if there was an error in adding the faultString
to the
underlying XML tree.getFaultString()
public String getFaultString()
getFaultString
in interface SOAPFault
public Detail getDetail()
getDetail
in interface SOAPFault
public void setFaultCode(Name faultCodeName) throws SOAPException
setFaultCode
in interface SOAPFault
faultCodeQName
- - a Name object giving the fault code to be set. It must be namespace
qualified.
SOAPException
- - if there was an error in adding the faultcode element to the
underlying XML tree.public Detail addDetail() throws SOAPException
addDetail
in interface SOAPFault
SOAPException
public Name getFaultCodeAsName()
getFaultCodeAsName
in interface SOAPFault
public void setFaultString(String faultString, Locale locale) throws SOAPException
setFaultString
in interface SOAPFault
faultString
- - a String giving an explanation of the fault
SOAPException
- - if there was an error in adding the faultString to the underlying XML
tree.getFaultString()
public Locale getFaultStringLocale()
getFaultStringLocale
in interface SOAPFault
setFaultString(String, Locale)
public void addFaultReasonText(String text, Locale locale) throws SOAPException
addFaultReasonText
in interface SOAPFault
text
- - reason message string locale - Locale object representing the locale of the
message
SOAPException
- - if there was an error in adding the Reason text or the locale passed
was null. java.lang.UnsupportedOperationException - if this message
does not support the SOAP 1.2 concept of Fault Reason.public void appendFaultSubcode(QName subcode) throws SOAPException
appendFaultSubcode
in interface SOAPFault
subcode
- - a QName containing the Value of the Subcode.
SOAPException
- - if there was an error in setting the Subcode java.lang.UnsupportedOperationException
- if this message does not support the SOAP 1.2 concept of Subcode.public QName getFaultCodeAsQName()
QName
object.
getFaultCodeAsQName
in interface SOAPFault
public String getFaultNode()
getFaultNode
in interface SOAPFault
UnsupportedOperationException
- - if this message does not support the SOAP 1.2 concept of Fault Node.public Iterator getFaultReasonLocales() throws SOAPException
getFaultReasonLocales
in interface SOAPFault
SOAPException
- - if there was an error in retrieving the fault Reason locales.
java.lang.UnsupportedOperationException - if this message does not
support the SOAP 1.2 concept of Fault Reason.public String getFaultReasonText(Locale locale) throws SOAPException
getFaultReasonText
in interface SOAPFault
locale
- - the Locale for which a localized Reason Text is desired
SOAPException
- - if there was an error in retrieving the fault Reason text for the
specified locale. java.lang.UnsupportedOperationException - if this
message does not support the SOAP 1.2 concept of Fault Reason.public Iterator getFaultReasonTexts() throws SOAPException
getFaultReasonTexts
in interface SOAPFault
SOAPException
- if there is an error in retrieving texts for Reason objects
java.lang.UnsupportedOperationException - if this message does not
support the SOAP 1.2 concept of Fault Reason.public String getFaultRole()
getFaultRole
in interface SOAPFault
UnsupportedOperationException
- - if this message does not support the SOAP 1.2 concept of Fault Role.public Iterator getFaultSubcodes()
getFaultSubcodes
in interface SOAPFault
UnsupportedOperationException
- - if this message does not support the SOAP 1.2 concept of Subcode.public boolean hasDetail()
hasDetail
in interface SOAPFault
public void removeAllFaultSubcodes()
removeAllFaultSubcodes
in interface SOAPFault
UnsupportedOperationException
- - if this message does not support the SOAP 1.2 concept of Subcode.public void setFaultCode(QName qname) throws SOAPException
setFaultCode
in interface SOAPFault
faultCodeQName
- - a QName object giving the fault code to be set. It must be namespace
qualified.
SOAPException
- - if there was an error in adding the faultcode element to the
underlying XML tree.getFaultCodeAsQName(), setFaultCode(Name), getFaultCodeAsQName()
public void setFaultNode(String s) throws SOAPException
setFaultNode
in interface SOAPFault
SOAPException
- - if there was an error in setting the Node for this SOAPFault object.
java.lang.UnsupportedOperationException - if this message does not
support the SOAP 1.2 concept of Fault Node.public void setFaultRole(String uri) throws SOAPException
setFaultRole
in interface SOAPFault
uri
- - the URI of the Role
SOAPException
- - if there was an error in setting the Role for this SOAPFault object
java.lang.UnsupportedOperationException - if this message does not
support the SOAP 1.2 concept of Fault Role.public Iterator getChildElements(Name name)
getChildElements
in interface SOAPElement
getChildElements
in class SOAPElementImpl
public Iterator getChildElements()
SOAPElementImpl
Text
objects as well as SOAPElement
objects.
getChildElements
in interface SOAPElement
getChildElements
in class SOAPElementImpl
Text
and SOAPElement
contained within this
SOAPElement
object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |