cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r745214 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingOutInterceptor.java
Date Tue, 17 Feb 2009 19:41:41 GMT
Author: dkulp
Date: Tue Feb 17 19:41:41 2009
New Revision: 745214

URL: http://svn.apache.org/viewvc?rev=745214&view=rev
Log:
Add constructor to allow putting the Out interceptor into a different phase

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

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingOutInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingOutInterceptor.java?rev=745214&r1=745213&r2=745214&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingOutInterceptor.java
(original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingOutInterceptor.java
Tue Feb 17 19:41:41 2009
@@ -42,10 +42,13 @@
     private int limit = 100 * 1024;
     private PrintWriter writer;
     
-    public LoggingOutInterceptor() {
-        super(Phase.PRE_STREAM);
+    public LoggingOutInterceptor(String phase) {
+        super(phase);
         addBefore(StaxOutInterceptor.class.getName());
     }
+    public LoggingOutInterceptor() {
+        this(Phase.PRE_STREAM);
+    }    
     public LoggingOutInterceptor(int lim) {
         this();
         limit = lim;



Mime
View raw message