Package org.apache.axis2.jaxws.message
Class XMLFault
java.lang.Object
org.apache.axis2.jaxws.message.XMLFault
This is a value class that is an agnostic representation of a fault. The XMLFault can be added to
or queried from a Message/XMLPart.
Even though XMLFault is SOAP 1.1/SOAP 1.2 agnostic, SOAP 1.2 terms will be used. For example,
"reason" means SOAP 1.2 Reason or SOAP 1.1 faultstring.
- See Also:
-
XMLFaultUtils
-
Constructor Summary
ConstructorsConstructorDescriptionXMLFault(XMLFaultCode code, XMLFaultReason reason) Construct System XMLFault with minimum required informationXMLFault(XMLFaultCode code, XMLFaultReason reason, Block[] detailBlocks) Construct Application XMLFault with minimum required information -
Method Summary
Modifier and TypeMethodDescriptiondump contents, used for debugginggetCode()Block[]getNode()getRole()QName[]voidvoidvoidsetSecondaryReasons(XMLFaultReason[] secondaryReasons) voidsetSubCodes(QName[] subCodes)
-
Constructor Details
-
XMLFault
Construct Application XMLFault with minimum required information- Parameters:
code- - XMLFaultCode or null if default XMLFaultCodereason- - String reasondetailBlocks- - Block[] or null if no detailBlocks
-
XMLFault
Construct System XMLFault with minimum required information- Parameters:
code- - XMLFaultCode or null if default XMLFaultCodereason- - String reason
-
-
Method Details
-
getCode
- Returns:
- Returns the code.
-
getDetailBlocks
- Returns:
- Returns the detailBlocks.
-
getReason
- Returns:
- Returns the reason.
-
getNode
- Returns:
- Returns the node.
-
setNode
- Parameters:
node- The node to set.
-
getRole
- Returns:
- Returns the role.
-
setRole
- Parameters:
role- The role to set.
-
getSecondaryReasons
- Returns:
- Returns the secondaryReasons.
-
setSecondaryReasons
- Parameters:
secondaryReasons- The secondaryReasons to set.
-
getSubCodes
- Returns:
- Returns the subCodes.
-
setSubCodes
- Parameters:
subCodes- The subCodes to set.
-
dump
dump contents, used for debugging- Returns:
- String containing contents of XMLFault
-