| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.axis.message.NodeImplorg.apache.axis.message.MessageElementorg.apache.axis.message.SOAPBodyElementorg.apache.axis.message.SOAPFaultNested Class Summary |
Nested classes/interfaces inherited from class org.apache.axis.message.MessageElement | |
MessageElement.QNameAttr | |
Fields inherited from class org.apache.axis.message.MessageElement | |
_isRoot, context, encodingStyle, endEventIndex, fixupDeserializer, href, id, log, message, namespaces, qNameAttrs, recorder, startContentsIndex, startEventIndex, typeQName | |
Fields inherited from class org.apache.axis.message.NodeImpl | |
_isDirty, attributes, children, document, log, name, namespaceURI, parent, prefix, textRep | |
Constructor Summary | |
| |
Method Summary | |
Detail |
|
Detail |
|
AxisFault |
|
String |
|
String |
|
Name | |
String |
|
Locale | |
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.apache.axis.message.SOAPBodyElement | |
setParentElement | |
public SOAPFault(String namespace,
String localName,
String prefix,
Attributes attrs,
DeserializationContext context)
throws AxisFaultAdvanced constructor used for deserialization.
- The context provides the mappings and Sax event recorder
- The soap messaging style is determined from the current message context, defaulting to SOAP1.1 if there is no current context.
- if there is an id attribute (any namespace), then the ID is registered with
DeserializationContext.registerElementByID(String,MessageElement);a new recorder is created if needed.- If there is an attribute "root" in the default SOAP namespace, then it is examined to see if it marks the element as root (value=="1" or not)
- If there is an arrayType attribute then we assume we are an array and set our
MessageElement.typeQNamefield appropriately.- The
MessageElement.hreffield is set if there is a relevant href value
- Parameters:
namespace- namespace namespace of elementprefix- prefix prefix of elementcontext- deserialization context for this message element
- Throws:
AxisFault- if the encoding style is not recognized/supported
public Detail addDetail() throws SOAPException
Creates aDetailobject and sets it as theDetailobject for thisSOAPFaultExceptionobject. 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.
- Returns:
- the new
Detailobject
- Throws:
SOAPException- if thisSOAPFaultExceptionobject already contains a validDetailobject
public Detail getDetail()
Returns the detail element for thisSOAPFaultExceptionobject. ADetailobject carries application-specific error information related toSOAPBodyElementobjects.
- Returns:
- a
Detailobject with application-specific error information
public String getFaultActor()
Gets the fault actor for thisSOAPFaultExceptionobject.
- Specified by:
- getFaultActor in interface SOAPFault
- Returns:
- a
Stringgiving the actor in the message path that caused thisSOAPFaultExceptionobject
- See Also:
setFaultActor(java.lang.String)
public String getFaultCode()
Gets the fault code for thisSOAPFaultExceptionobject.
- Specified by:
- getFaultCode in interface SOAPFault
- Returns:
- a
Stringwith the fault code
public Name getFaultCodeAsName()
- Specified by:
- getFaultCodeAsName in interface SOAPFault
public String getFaultString()
Gets the fault string for thisSOAPFaultExceptionobject.
- Specified by:
- getFaultString in interface SOAPFault
- Returns:
- a
Stringgiving an explanation of the fault
public Locale getFaultStringLocale()
- Specified by:
- getFaultStringLocale in interface SOAPFault
public void outputImpl(SerializationContext context) throws Exception
override point -output to a serialization context.
- Overrides:
- outputImpl in interface MessageElement
- Parameters:
public void setFaultActor(String faultActor)
throws SOAPExceptionSets thisSOAPFaultExceptionobject with the given fault actor. The fault actor is the recipient in the message path who caused the fault to happen.
- Specified by:
- setFaultActor in interface SOAPFault
- Parameters:
faultActor- aStringidentifying the actor that caused thisSOAPFaultExceptionobject
- Throws:
SOAPException- if there was an error in adding thefaultActorto the underlying XML tree.
public void setFaultCode(String faultCode)
throws SOAPExceptionSets thisSOAPFaultExceptionobject with the given fault code. Fault codes, which given information about the fault, are defined in the SOAP 1.1 specification.
- Specified by:
- setFaultCode in interface SOAPFault
- Parameters:
faultCode- aStringgiving the fault code to be set; must be one of the fault codes defined in the SOAP 1.1 specification
- Throws:
SOAPException- if there was an error in adding thefaultCodeto the underlying XML tree.
public void setFaultCode(Name faultCodeQName) throws SOAPException
- Specified by:
- setFaultCode in interface SOAPFault
public void setFaultString(String faultString)
throws SOAPExceptionSets the fault string for thisSOAPFaultExceptionobject to the given string.
- Specified by:
- setFaultString in interface SOAPFault
- Parameters:
faultString- aStringgiving an explanation of the fault
- Throws:
SOAPException- if there was an error in adding thefaultStringto the underlying XML tree.
- See Also:
getFaultString()
public void setFaultString(String faultString,
Locale locale)
throws SOAPException
- Specified by:
- setFaultString in interface SOAPFault