cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1173831 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/transform/TransformInInterceptor.java
Date Wed, 21 Sep 2011 20:27:35 GMT
Author: sergeyb
Date: Wed Sep 21 20:27:34 2011
New Revision: 1173831

URL: http://svn.apache.org/viewvc?rev=1173831&view=rev
Log:
Adding few TransformInInterceptor helper constructors

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/transform/TransformInInterceptor.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/transform/TransformInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/transform/TransformInInterceptor.java?rev=1173831&r1=1173830&r2=1173831&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/transform/TransformInInterceptor.java
(original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/transform/TransformInInterceptor.java
Wed Sep 21 20:27:34 2011
@@ -47,11 +47,25 @@ public class TransformInInterceptor exte
     
     public TransformInInterceptor() {
         this(Phase.POST_STREAM);
+        addBefore(StaxInInterceptor.class.getName());
     }
     
     public TransformInInterceptor(String phase) {
         super(phase);
-        addBefore(StaxInInterceptor.class.getName());
+    }
+    
+    public TransformInInterceptor(String phase, List<String> after) {
+        super(phase);
+        if (after != null) {
+            addAfter(after);
+        }
+    }
+    
+    public TransformInInterceptor(String phase, List<String> before, List<String>
after) {
+        this(phase, after);
+        if (before != null) {
+            addBefore(before);
+        }
     }
     
     public void handleMessage(Message message) {



Mime
View raw message