Package org.apache.axis2.jaxws.message
Class XMLFault
- java.lang.Object
-
- org.apache.axis2.jaxws.message.XMLFault
-
public class XMLFault extends Object
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
Constructors Constructor Description XMLFault(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
dump(String indent)
dump contents, used for debuggingXMLFaultCode
getCode()
Block[]
getDetailBlocks()
String
getNode()
XMLFaultReason
getReason()
String
getRole()
XMLFaultReason[]
getSecondaryReasons()
QName[]
getSubCodes()
void
setNode(String node)
void
setRole(String role)
void
setSecondaryReasons(XMLFaultReason[] secondaryReasons)
void
setSubCodes(QName[] subCodes)
-
-
-
Constructor Detail
-
XMLFault
public XMLFault(XMLFaultCode code, XMLFaultReason reason, Block[] detailBlocks)
Construct Application XMLFault with minimum required information- Parameters:
code
- - XMLFaultCode or null if default XMLFaultCodereason
- - String reasondetailBlocks
- - Block[] or null if no detailBlocks
-
XMLFault
public XMLFault(XMLFaultCode code, XMLFaultReason reason)
Construct System XMLFault with minimum required information- Parameters:
code
- - XMLFaultCode or null if default XMLFaultCodereason
- - String reason
-
-
Method Detail
-
getCode
public XMLFaultCode getCode()
- Returns:
- Returns the code.
-
getDetailBlocks
public Block[] getDetailBlocks()
- Returns:
- Returns the detailBlocks.
-
getReason
public XMLFaultReason getReason()
- Returns:
- Returns the reason.
-
getNode
public String getNode()
- Returns:
- Returns the node.
-
setNode
public void setNode(String node)
- Parameters:
node
- The node to set.
-
getRole
public String getRole()
- Returns:
- Returns the role.
-
setRole
public void setRole(String role)
- Parameters:
role
- The role to set.
-
getSecondaryReasons
public XMLFaultReason[] getSecondaryReasons()
- Returns:
- Returns the secondaryReasons.
-
setSecondaryReasons
public void setSecondaryReasons(XMLFaultReason[] secondaryReasons)
- Parameters:
secondaryReasons
- The secondaryReasons to set.
-
getSubCodes
public QName[] getSubCodes()
- Returns:
- Returns the subCodes.
-
setSubCodes
public void setSubCodes(QName[] subCodes)
- Parameters:
subCodes
- The subCodes to set.
-
-