org.apache.axis2.jaxws.message
Class XMLFault

java.lang.Object
  extended by org.apache.axis2.jaxws.message.XMLFault

public class XMLFault
extends java.lang.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
XMLFault(XMLFaultCode code, XMLFaultReason reason)
          Construct System XMLFault with minimum required information
XMLFault(XMLFaultCode code, XMLFaultReason reason, Block[] detailBlocks)
          Construct Application XMLFault with minimum required information
 
Method Summary
 XMLFaultCode getCode()
           
 Block[] getDetailBlocks()
           
 java.lang.String getNode()
           
 XMLFaultReason getReason()
           
 java.lang.String getRole()
           
 XMLFaultReason[] getSecondaryReasons()
           
 QName[] getSubCodes()
           
 void setNode(java.lang.String node)
           
 void setRole(java.lang.String role)
           
 void setSecondaryReasons(XMLFaultReason[] secondaryReasons)
           
 void setSubCodes(QName[] subCodes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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 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 java.lang.String getNode()
Returns:
Returns the node.

setNode

public void setNode(java.lang.String node)
Parameters:
node - The node to set.

getRole

public java.lang.String getRole()
Returns:
Returns the role.

setRole

public void setRole(java.lang.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.


Copyright © 2007 Apache Web Services Project. All Rights Reserved.