org.apache.axis2.jaxws.message
Class XMLFault
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.