Java Doc for AxisFault.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Services AXIS2 » kernal » org.apache.axis2 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.io.IOException
            java.rmi.RemoteException
               org.apache.axis2.AxisFault

All known Subclasses:   org.apache.axis2.clustering.ClusteringFault,  org.apache.axis2.dataretrieval.DataRetrievalException,  org.apache.axis2.deployment.DeploymentException,  org.apache.axis2.phaseresolver.PhaseException,
AxisFault
public class AxisFault extends RemoteException (Code)
An exception which maps cleanly to a SOAP fault. This is a base class for exceptions which are mapped to faults.
See Also:    * SOAP1.2 specification
See Also:    SOAP1.1 Faults
See Also:   


See Also:   SOAP faults contain
See Also:   


    See Also:   
  1. A fault string
    See Also:   
  2. A fault code
    See Also:   
  3. A fault actor
    See Also:   
  4. Fault details; an xml tree of fault specific elements
    See Also:   

See Also:   


See Also:   As SOAP1.2 faults are a superset of SOAP1.1 faults, this type holds soap1.2 fault information. When
See Also:   a SOAP1.1 fault is created, spurious information can be discarded.
See Also:   Mapping
See Also:   


See Also:   SOAP1.2 SOAP1.1
See Also:   node faultactor
See Also:   reason(0).text faultstring
See Also:   faultcode.value faultcode
See Also:   faultcode.subcode (discarded)
See Also:   detail detail
See Also:   role (discarded)
See Also:   

Inner Class :class FaultReason implements Serializable


Constructor Summary
public  AxisFault(String message)
     Constructor.
public  AxisFault(QName faultCode, String faultReason, Throwable cause)
     Constructor
Parameters:
  faultCode - - fault code of the message as a QName
Parameters:
  faultReason - - the reason for the fault.
public  AxisFault(QName faultCode, String faultReason, String faultNode, String faultRole, OMElement faultDetail)
     Constructor
Parameters:
  faultCode - a QName for the fault code
Parameters:
  faultReason - the reason for the fault.
public  AxisFault(SOAPFaultCode soapFaultCode, SOAPFaultReason soapFaultReason, SOAPFaultNode soapFaultNode, SOAPFaultRole soapFaultRole, SOAPFaultDetail soapFaultDetail)
     This is just a convenience method for the user.
public  AxisFault(SOAPFault fault)
    
public  AxisFault(SOAPFault fault, MessageContext faultCtx)
    
protected  AxisFault(Throwable cause)
     Construct a fault from a Throwable.
public  AxisFault(String messageText, String faultCode)
     Constructor.
public  AxisFault(String messageText, QName faultCode)
    
public  AxisFault(String message, Throwable cause)
    
public  AxisFault(String messageText, QName faultCode, Throwable cause)
    
public  AxisFault(String message, MessageContext faultMessageContext, Throwable cause)
    
public  AxisFault(String messageText, String faultCode, Throwable cause)
    
public  AxisFault(String message, MessageContext faultMessageContext)
     Create an AxisFault by providing a textual message and a MessageContext that contains the actual fault representation.

Method Summary
public  voidaddHeader(SOAPHeaderBlock header)
    
public  voidaddReason(String text)
    
public  voidaddReason(String text, String language)
    
public  OMElementgetDetail()
    
public  StringgetFaultAction()
    
public  QNamegetFaultCode()
    
public  SOAPFaultCodegetFaultCodeElement()
    
public  SOAPFaultDetailgetFaultDetailElement()
    
public  MessageContextgetFaultMessageContext()
     Returns the MessageContext representation of the fault if the fault was created by providing that.
public  StringgetFaultNode()
    
public  SOAPFaultNodegetFaultNodeElement()
    
public  SOAPFaultReasongetFaultReasonElement()
    
public  StringgetFaultRole()
    
public  SOAPFaultRolegetFaultRoleElement()
    
public  ListgetFaultSubCodes()
    
public  StringgetMessage()
     Returns the detail message, including the message from the cause, if any, of this exception.
public  StringgetNodeURI()
     Get the faulting node uri.
public  StringgetReason()
     Returns the first fault reason, if available.
public  ListIteratorheaderIterator()
    
public  Listheaders()
     Get at the headers.
public static  AxisFaultmakeFault(Throwable e)
     Make an AxisFault based on a passed Exception.
public  voidsetDetail(OMElement detail)
    
public  voidsetFaultAction(String faultAction)
    
public  voidsetFaultCode(QName soapFaultCode)
    
public  voidsetFaultCode(String soapFaultCode)
    
public  voidsetNodeURI(String nodeURI)
     Set the faulting node uri.


Constructor Detail
AxisFault
public AxisFault(String message)(Code)
Constructor.
Parameters:
  message - the human-readable text describing the fault



AxisFault
public AxisFault(QName faultCode, String faultReason, Throwable cause)(Code)
Constructor
Parameters:
  faultCode - - fault code of the message as a QName
Parameters:
  faultReason - - the reason for the fault. The language will be defaulted to 'en'
Parameters:
  cause - embedded fault which caused this one



AxisFault
public AxisFault(QName faultCode, String faultReason, String faultNode, String faultRole, OMElement faultDetail)(Code)
Constructor
Parameters:
  faultCode - a QName for the fault code
Parameters:
  faultReason - the reason for the fault. The language will be defaulted to 'en'
Parameters:
  faultNode - a URL identifying the SOAP node generating this fault, or null
Parameters:
  faultRole - a URL identifying the SOAP role active when generating this fault, or null
Parameters:
  faultDetail - arbitrary XML containing application-specific fault data



AxisFault
public AxisFault(SOAPFaultCode soapFaultCode, SOAPFaultReason soapFaultReason, SOAPFaultNode soapFaultNode, SOAPFaultRole soapFaultRole, SOAPFaultDetail soapFaultDetail)(Code)
This is just a convenience method for the user. If you set these, do not use other methods in this class to get and set things. Any of the parameters can be null
Parameters:
  soapFaultCode - the fault code
Parameters:
  soapFaultReason - the fault reason
Parameters:
  soapFaultNode - the SOAPFaultNode representing the source node for this fault
Parameters:
  soapFaultRole - the SOAPFaultRole representing the source role for this fault
Parameters:
  soapFaultDetail - the SOAPFaultDetail containing any application-specific info



AxisFault
public AxisFault(SOAPFault fault)(Code)



AxisFault
public AxisFault(SOAPFault fault, MessageContext faultCtx)(Code)



AxisFault
protected AxisFault(Throwable cause)(Code)
Construct a fault from a Throwable. This is a protected constructor - in general to make an AxisFault from an Exception, you should be calling AxisFault.makeFault(e), which prevents AxisFaults within AxisFaults.
Parameters:
  cause - the Throwable that caused the problem



AxisFault
public AxisFault(String messageText, String faultCode)(Code)
Constructor.
Parameters:
  messageText - - this will appear as the Text in the Reason information item of SOAP Fault
Parameters:
  faultCode - - this will appear as the Value in the Code information item of SOAP Fault



AxisFault
public AxisFault(String messageText, QName faultCode)(Code)
Constructor
Parameters:
  messageText - this will appear as the Text in the Reason information item of SOAP Fault
Parameters:
  faultCode - this will appear as the Value in the Code information item of SOAP Fault



AxisFault
public AxisFault(String message, Throwable cause)(Code)
Constructor
Parameters:
  message - this will appear as the Text in the Reason information item of SOAP Fault
Parameters:
  cause - the embedded Throwable that caused this fault



AxisFault
public AxisFault(String messageText, QName faultCode, Throwable cause)(Code)

Parameters:
  messageText - - this will appear as the Text in the Reason information item of SOAP Fault
Parameters:
  faultCode - - this will appear as the Value in the Code information item of SOAP Fault
Parameters:
  cause - - this will appear under the Detail information item of SOAP Fault



AxisFault
public AxisFault(String message, MessageContext faultMessageContext, Throwable cause)(Code)

Parameters:
  message -
Parameters:
  faultMessageContext -
Parameters:
  cause -



AxisFault
public AxisFault(String messageText, String faultCode, Throwable cause)(Code)

Parameters:
  messageText - - this will appear as the Text in the Reason information item of SOAP Fault
Parameters:
  faultCode - - this will appear as the Value in the Code information item of SOAP Fault
Parameters:
  cause - - this will appear under the Detail information item of SOAP Fault



AxisFault
public AxisFault(String message, MessageContext faultMessageContext)(Code)
Create an AxisFault by providing a textual message and a MessageContext that contains the actual fault representation.
Parameters:
  message - A string that's really only useful for logging.
Parameters:
  faultMessageContext - A MessageContext which must contain SOAP fault info




Method Detail
addHeader
public void addHeader(SOAPHeaderBlock header)(Code)
Add a header to the list of fault headers
Parameters:
  header - to add.



addReason
public void addReason(String text)(Code)
Add a reason for the fault in the empty "" language
Parameters:
  text - text message



addReason
public void addReason(String text, String language)(Code)
Add a reason for the fault
Parameters:
  text - text message
Parameters:
  language - language



getDetail
public OMElement getDetail()(Code)
Get the current fault detail om element



getFaultAction
public String getFaultAction()(Code)
the action value set for the fault message



getFaultCode
public QName getFaultCode()(Code)



getFaultCodeElement
public SOAPFaultCode getFaultCodeElement()(Code)
SOAPFaultCode if, user has set a SOAPFaultCode element when constructing theAxisFault.AxisFault(org.apache.axiom.soap.SOAPFaultCode,org.apache.axiom.soap.SOAPFaultReason,org.apache.axiom.soap.SOAPFaultNode,org.apache.axiom.soap.SOAPFaultRole,org.apache.axiom.soap.SOAPFaultDetail) AxisFault



getFaultDetailElement
public SOAPFaultDetail getFaultDetailElement()(Code)
SOAPFaultCode if, user has set a SOAPFaultDetail element when constructing theAxisFault.AxisFault(org.apache.axiom.soap.SOAPFaultCode,org.apache.axiom.soap.SOAPFaultReason,org.apache.axiom.soap.SOAPFaultNode,org.apache.axiom.soap.SOAPFaultRole,org.apache.axiom.soap.SOAPFaultDetail) AxisFault



getFaultMessageContext
public MessageContext getFaultMessageContext()(Code)
Returns the MessageContext representation of the fault if the fault was created by providing that. The MessageContext representing the fault message or null if thefault was not created with MessageContext representation.



getFaultNode
public String getFaultNode()(Code)



getFaultNodeElement
public SOAPFaultNode getFaultNodeElement()(Code)
SOAPFaultCode if, user has set a SOAPFaultNode element when constructing theAxisFault.AxisFault(org.apache.axiom.soap.SOAPFaultCode,org.apache.axiom.soap.SOAPFaultReason,org.apache.axiom.soap.SOAPFaultNode,org.apache.axiom.soap.SOAPFaultRole,org.apache.axiom.soap.SOAPFaultDetail) AxisFault



getFaultReasonElement
public SOAPFaultReason getFaultReasonElement()(Code)
SOAPFaultCode if, user has set a SOAPFaultReason element when constructing theAxisFault.AxisFault(org.apache.axiom.soap.SOAPFaultCode,org.apache.axiom.soap.SOAPFaultReason,org.apache.axiom.soap.SOAPFaultNode,org.apache.axiom.soap.SOAPFaultRole,org.apache.axiom.soap.SOAPFaultDetail) AxisFault



getFaultRole
public String getFaultRole()(Code)



getFaultRoleElement
public SOAPFaultRole getFaultRoleElement()(Code)
SOAPFaultCode if, user has set a SOAPFaultRole element when constructing theAxisFault.AxisFault(org.apache.axiom.soap.SOAPFaultCode,org.apache.axiom.soap.SOAPFaultReason,org.apache.axiom.soap.SOAPFaultNode,org.apache.axiom.soap.SOAPFaultRole,org.apache.axiom.soap.SOAPFaultDetail) AxisFault



getFaultSubCodes
public List getFaultSubCodes()(Code)



getMessage
public String getMessage()(Code)
Returns the detail message, including the message from the cause, if any, of this exception. the detail message



getNodeURI
public String getNodeURI()(Code)
Get the faulting node uri. SOAP1.2 URI as a string or null



getReason
public String getReason()(Code)
Returns the first fault reason, if available. If not found, returns null. faultReason



headerIterator
public ListIterator headerIterator()(Code)
Iterate over all of the headers iterator



headers
public List headers()(Code)
Get at the headers. Useful for java1.5 iteration. the headers for this fault



makeFault
public static AxisFault makeFault(Throwable e)(Code)
Make an AxisFault based on a passed Exception. If the Exception is already an AxisFault, simply use that. Otherwise, wrap it in an AxisFault. If the Exception is an InvocationTargetException (which already wraps another Exception), get the wrapped Exception out from there and use that instead of the passed one.
Parameters:
  e - the Exception to build a fault for an AxisFault representing e



setDetail
public void setDetail(OMElement detail)(Code)
Set the entire detail element of the fault
Parameters:
  detail - an OMElement which MUST be



setFaultAction
public void setFaultAction(String faultAction)(Code)
Set the (OPTIONAL) action value for the fault message
Parameters:
  faultAction - a String containing an action URI for the fault



setFaultCode
public void setFaultCode(QName soapFaultCode)(Code)



setFaultCode
public void setFaultCode(String soapFaultCode)(Code)



setNodeURI
public void setNodeURI(String nodeURI)(Code)
Set the faulting node uri. (SOAP1.2)
Parameters:
  nodeURI - a String containing a URI indicating which SOAP Node faulted



Fields inherited from java.rmi.RemoteException
public Throwable detail(Code)(Java Doc)

Methods inherited from java.rmi.RemoteException
public Throwable getCause()(Code)(Java Doc)
public String getMessage()(Code)(Java Doc)



Methods inherited from java.lang.Throwable
native public synchronized Throwable fillInStackTrace()(Code)(Java Doc)
public Throwable getCause()(Code)(Java Doc)
public String getLocalizedMessage()(Code)(Java Doc)
public String getMessage()(Code)(Java Doc)
public StackTraceElement[] getStackTrace()(Code)(Java Doc)
public synchronized Throwable initCause(Throwable cause)(Code)(Java Doc)
public void printStackTrace()(Code)(Java Doc)
public void printStackTrace(PrintStream s)(Code)(Java Doc)
public void printStackTrace(PrintWriter s)(Code)(Java Doc)
public void setStackTrace(StackTraceElement[] stackTrace)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.