cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From unrealji...@apache.org
Subject svn commit: r504456 - in /incubator/cxf/trunk: api/src/main/java/org/apache/cxf/interceptor/ api/src/main/java/org/apache/cxf/phase/ rt/core/src/test/java/org/apache/cxf/bus/spring/ rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/
Date Wed, 07 Feb 2007 08:01:06 GMT
Author: unrealjiang
Date: Wed Feb  7 00:01:02 2007
New Revision: 504456

URL: http://svn.apache.org/viewvc?view=rev&rev=504456
Log:
Add postHandleMessage into Interceptor API(CXF-412)

Modified:
    incubator/cxf/trunk/api/src/main/java/org/apache/cxf/interceptor/Interceptor.java
    incubator/cxf/trunk/api/src/main/java/org/apache/cxf/phase/AbstractPhaseInterceptor.java
    incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/bus/spring/SpringBusFactoryTest.java
    incubator/cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/AbstractRMInterceptor.java

Modified: incubator/cxf/trunk/api/src/main/java/org/apache/cxf/interceptor/Interceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/api/src/main/java/org/apache/cxf/interceptor/Interceptor.java?view=diff&rev=504456&r1=504455&r2=504456
==============================================================================
--- incubator/cxf/trunk/api/src/main/java/org/apache/cxf/interceptor/Interceptor.java (original)
+++ incubator/cxf/trunk/api/src/main/java/org/apache/cxf/interceptor/Interceptor.java Wed
Feb  7 00:01:02 2007
@@ -41,4 +41,10 @@
      */
     void handleFault(T message);
     
+    /**
+     * Clean up interceptor.
+     * @param message
+     * @throws Fault
+     */
+    void postHandleMessage(T message) throws Fault;
 }

Modified: incubator/cxf/trunk/api/src/main/java/org/apache/cxf/phase/AbstractPhaseInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/api/src/main/java/org/apache/cxf/phase/AbstractPhaseInterceptor.java?view=diff&rev=504456&r1=504455&r2=504456
==============================================================================
--- incubator/cxf/trunk/api/src/main/java/org/apache/cxf/phase/AbstractPhaseInterceptor.java
(original)
+++ incubator/cxf/trunk/api/src/main/java/org/apache/cxf/phase/AbstractPhaseInterceptor.java
Wed Feb  7 00:01:02 2007
@@ -24,6 +24,7 @@
 
 import javax.xml.stream.XMLStreamReader;
 
+import org.apache.cxf.interceptor.Fault;
 import org.apache.cxf.message.Message;
 
 public abstract class AbstractPhaseInterceptor<T extends Message> implements PhaseInterceptor<T>
{
@@ -84,6 +85,10 @@
     }
 
     public void handleFault(T message) {
+    }
+    
+    public void postHandleMessage(T message) throws Fault {
+        
     }
     
     public boolean isGET(T message) {

Modified: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/bus/spring/SpringBusFactoryTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/bus/spring/SpringBusFactoryTest.java?view=diff&rev=504456&r1=504455&r2=504456
==============================================================================
--- incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/bus/spring/SpringBusFactoryTest.java
(original)
+++ incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/bus/spring/SpringBusFactoryTest.java
Wed Feb  7 00:01:02 2007
@@ -148,6 +148,9 @@
         public void handleMessage(Message message) throws Fault {   
         }
         
+        public void postHandleMessage(Message message) throws Fault {            
+        }
+        
     }
      
     

Modified: incubator/cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/AbstractRMInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/AbstractRMInterceptor.java?view=diff&rev=504456&r1=504455&r2=504456
==============================================================================
--- incubator/cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/AbstractRMInterceptor.java
(original)
+++ incubator/cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/AbstractRMInterceptor.java
Wed Feb  7 00:01:02 2007
@@ -89,6 +89,9 @@
         }
     } 
     
+    public void postHandleMessage(Message msg) throws Fault {
+    }
+    
     // rm logic
     
     abstract void handleMessage(Message msg, boolean isFault) throws SequenceFault;



Mime
View raw message