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;


Reply via email to