|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.message.MessageElement | +--org.apache.axis.message.SOAPBodyElement | +--org.apache.axis.message.SOAPFault
A Fault body element.
Nested Class Summary |
Nested classes inherited from class org.apache.axis.message.MessageElement |
MessageElement.QNameAttr |
Field Summary | |
protected AxisFault |
fault
|
Fields inherited from class org.apache.axis.message.MessageElement |
_isDirty, _isRoot, attributes, context, elementRep, encodingStyle, endEventIndex, href, id, log, message, name, namespaces, namespaceURI, parent, prefix, qNameAttrs, recorder, startContentsIndex, startEventIndex, textRep, typeQName |
Constructor Summary | |
SOAPFault(AxisFault fault)
|
|
SOAPFault(java.lang.String namespace,
java.lang.String localName,
java.lang.String prefix,
org.xml.sax.Attributes attrs,
DeserializationContext context)
|
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()
|
java.lang.String |
getFaultActor()
Gets the fault actor for this SOAPFaultException
object. |
java.lang.String |
getFaultCode()
Gets the fault code for this SOAPFaultException
object. |
java.lang.String |
getFaultString()
Gets the fault string for this SOAPFaultException
object. |
void |
outputImpl(SerializationContext context)
Subclasses can override |
void |
setFault(AxisFault fault)
|
void |
setFaultActor(java.lang.String faultActor)
Sets this SOAPFaultException object with the given
fault actor. |
void |
setFaultCode(java.lang.String faultCode)
Sets this SOAPFaultException object with the given
fault code. |
void |
setFaultString(java.lang.String faultString)
Sets the fault string for this SOAPFaultException
object to the given string. |
Methods inherited from class org.apache.axis.message.SOAPBodyElement |
detachNode, setParentElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.xml.soap.SOAPElement |
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, getAllAttributes, getAttributeValue, getChildElements, getChildElements, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, removeAttribute, removeNamespaceDeclaration, setEncodingStyle |
Methods inherited from interface javax.xml.soap.Node |
detachNode, getParentElement, getValue, recycleNode, setParentElement |
Field Detail |
protected AxisFault fault
Constructor Detail |
public SOAPFault(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attrs, DeserializationContext context) throws AxisFault
public SOAPFault(AxisFault fault)
Method Detail |
public void outputImpl(SerializationContext context) throws java.io.IOException
MessageElement
outputImpl
in class MessageElement
java.io.IOException
public AxisFault getFault()
public void setFault(AxisFault fault)
public void setFaultCode(java.lang.String faultCode) throws SOAPException
SOAPFaultException
object with the given
fault code.
Fault codes, which given information about the fault, are defined in the SOAP 1.1 specification.
setFaultCode
in interface SOAPFault
faultCode
- a String
giving
the fault code to be set; must be one of the fault codes
defined in the SOAP 1.1 specification
SOAPException
- if there was an error in
adding the faultCode
to the underlying XML
tree.getFaultCode()
public java.lang.String getFaultCode()
SOAPFaultException
object.
getFaultCode
in interface SOAPFault
String
with the fault codesetFaultCode(java.lang.String)
public void setFaultActor(java.lang.String faultActor) throws SOAPException
SOAPFaultException
object with the given
fault actor.
The fault actor is the recipient in the message path who caused the fault to happen.
setFaultActor
in interface SOAPFault
faultActor
- a String
identifying the actor that caused this
SOAPFaultException
object
SOAPException
- if there was an error in
adding the faultActor
to the underlying XML
tree.getFaultActor()
public java.lang.String getFaultActor()
SOAPFaultException
object.
getFaultActor
in interface SOAPFault
String
giving the actor in the message
path that caused this SOAPFaultException
objectsetFaultActor(java.lang.String)
public void setFaultString(java.lang.String faultString) throws SOAPException
SOAPFaultException
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 java.lang.String getFaultString()
SOAPFaultException
object.
getFaultString
in interface SOAPFault
String
giving an explanation of the
faultpublic Detail getDetail()
SOAPFaultException
object.
A Detail
object carries
application-specific error information related to
SOAPBodyElement
objects.
getDetail
in interface SOAPFault
Detail
object with
application-specific error informationpublic Detail addDetail() throws SOAPException
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.
addDetail
in interface SOAPFault
Detail
object
SOAPException
- if this
SOAPFaultException
object already contains a valid
Detail
object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |