cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r601868 - in /incubator/cxf/trunk: api/src/main/java/org/apache/cxf/phase/ rt/core/src/main/java/org/apache/cxf/interceptor/
Date Thu, 06 Dec 2007 21:51:41 GMT
Author: dkulp
Date: Thu Dec  6 13:51:40 2007
New Revision: 601868

URL: http://svn.apache.org/viewvc?rev=601868&view=rev
Log:
[CXF-1262] Allow better spring configuration of interceptors

Modified:
    incubator/cxf/trunk/api/src/main/java/org/apache/cxf/phase/AbstractPhaseInterceptor.java
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingMessage.java

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?rev=601868&r1=601867&r2=601868&view=diff
==============================================================================
--- 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
Thu Dec  6 13:51:40 2007
@@ -19,6 +19,7 @@
 
 package org.apache.cxf.phase;
 
+import java.util.Collection;
 import java.util.Set;
 
 import javax.xml.stream.XMLStreamReader;
@@ -41,6 +42,21 @@
         phase = p;
     }
 
+    public void setBefore(Collection<String> i) {
+        before.clear();
+        before.addAll(i);
+    }
+    public void setAfter(Collection<String> i) {
+        after.clear();
+        after.addAll(i);
+    }
+    public void addBefore(Collection<String> i) {
+        before.addAll(i);
+    }
+    public void addAfter(Collection<String> i) {
+        after.addAll(i);
+    }
+    
     public void addBefore(String i) {
         before.add(i);
     }

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java?rev=601868&r1=601867&r2=601868&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java
Thu Dec  6 13:51:40 2007
@@ -46,6 +46,10 @@
     public LoggingInInterceptor() {
         super(Phase.RECEIVE);
     }
+    
+    public LoggingInInterceptor(String phase) {
+        super(phase);
+    }
 
     public LoggingInInterceptor(int lim) {
         this();
@@ -55,6 +59,14 @@
     public LoggingInInterceptor(PrintWriter w) {
         this();
         this.writer = w;
+    }
+    
+    public void setPrintWriter(PrintWriter w) {
+        writer = w;
+    }
+    
+    public PrintWriter getPrintWriter() {
+        return writer;
     }
     
     public void setLimit(int lim) {

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingMessage.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingMessage.java?rev=601868&r1=601867&r2=601868&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingMessage.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingMessage.java
Thu Dec  6 13:51:40 2007
@@ -53,7 +53,7 @@
     }
 
     public String toString() {
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         buffer.append(heading);
         buffer.append("\nEncoding: ");
         buffer.append(encoding);



Mime
View raw message