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 Details

    • XMLFault

      public XMLFault(XMLFaultCode code, XMLFaultReason reason, Block[] detailBlocks)
      Construct Application XMLFault with minimum required information
      Parameters:
      code - - XMLFaultCode or null if default XMLFaultCode
      reason - - String reason
      detailBlocks - - 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 XMLFaultCode
      reason - - String reason
  • Method Details

    • 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.
    • dump

      public String dump(String indent)
      dump contents, used for debugging
      Returns:
      String containing contents of XMLFault