axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r351748 - in /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2: AxisFault.java engine/AxisEngine.java
Date Fri, 02 Dec 2005 15:09:29 GMT
Author: dims
Date: Fri Dec  2 07:09:25 2005
New Revision: 351748

URL: http://svn.apache.org/viewcvs?rev=351748&view=rev
Log:
reinstate references to the fault package.


Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/AxisFault.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisEngine.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/AxisFault.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/AxisFault.java?rev=351748&r1=351747&r2=351748&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/AxisFault.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/AxisFault.java Fri Dec
 2 07:09:25 2005
@@ -16,8 +16,8 @@
 
 package org.apache.axis2;
 
-//import org.apache.axis2.fault.FaultCode;
-//import org.apache.axis2.fault.FaultReasonList;
+import org.apache.axis2.fault.FaultCode;
+import org.apache.axis2.fault.FaultReasonList;
 import org.apache.axis2.om.OMElement;
 import org.apache.axis2.soap.SOAPFault;
 import org.apache.axis2.soap.SOAPFaultCode;
@@ -65,7 +65,7 @@
     /**
      * Contains the faultcode
      */
-    //private FaultCode faultCode=new FaultCode();
+    private FaultCode faultCode=new FaultCode();
 
     /**
      * SOAP1.2: URI of faulting node. Null for unknown.
@@ -82,7 +82,7 @@
     /**
      * our failt reasons
      */
-    //private FaultReasonList reasons=new FaultReasonList();
+    private FaultReasonList reasons=new FaultReasonList();
 
     private OMElement detail;
 
@@ -132,7 +132,7 @@
      */
     public AxisFault(String messageText, String faultCode) {
         this(messageText);
-        //setFaultCode(faultCode);
+        setFaultCode(faultCode);
     }
 
     /**
@@ -142,7 +142,7 @@
      */
     public AxisFault(String messageText, String faultCode, Throwable cause) {
         this(messageText, cause);
-        //setFaultCode(faultCode);
+        setFaultCode(faultCode);
     }
 
 
@@ -153,7 +153,7 @@
      */
     public AxisFault(String messageText, QName faultCode, Throwable cause) {
         this(messageText, cause);
-        //setFaultCode(faultCode);
+        setFaultCode(faultCode);
     }
 
 
@@ -198,24 +198,24 @@
      */
     private void init(SOAPFault fault) {
         SOAPFaultCode faultcodesource =fault.getCode();
-        //faultCode=new FaultCode(faultcodesource);
+        faultCode=new FaultCode(faultcodesource);
         detail=fault.getDetail();
         fault.getNode();
     }
 
 
 
-//    public String getFaultCode() {
-//        return faultCode.getValueString();
-//    }
-//
-//    public void setFaultCode(String soapFaultCode) {
-//        faultCode.setValueString(soapFaultCode);
-//    }
-//
-//    public void setFaultCode(QName soapFaultCode) {
-//        faultCode.setValue(soapFaultCode);
-//    }
+    public String getFaultCode() {
+        return faultCode.getValueString();
+    }
+
+    public void setFaultCode(String soapFaultCode) {
+        faultCode.setValueString(soapFaultCode);
+    }
+
+    public void setFaultCode(QName soapFaultCode) {
+        faultCode.setValue(soapFaultCode);
+    }
 
     /**
      * Add a reason for the fault
@@ -223,7 +223,7 @@
      * @param language language
      */
     public void addReason(String text,String language) {
-        //reasons.add(text,language);
+        reasons.add(text,language);
     }
 
     /**

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisEngine.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisEngine.java?rev=351748&r1=351747&r2=351748&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisEngine.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisEngine.java
Fri Dec  2 07:09:25 2005
@@ -361,7 +361,7 @@
         } else if (soapException != null) {
             soapFaultCode = soapException.getFaultCode();
         } else if (e instanceof AxisFault) {
-            //soapFaultCode = ((AxisFault) e).getFaultCode();
+            soapFaultCode = ((AxisFault) e).getFaultCode();
         }
 
         // defaulting to fault code Sender, if no message is available



Mime
View raw message