camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1388217 - /camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/interceptors/RawMessageContentRedirectInterceptor.java
Date Thu, 20 Sep 2012 21:06:57 GMT
Author: dkulp
Date: Thu Sep 20 21:06:56 2012
New Revision: 1388217

URL: http://svn.apache.org/viewvc?rev=1388217&view=rev
Log:
Use CXF's IOUtils instead of Camels as CXF's will have some CXF specific optimizations for
this use case.

Modified:
    camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/interceptors/RawMessageContentRedirectInterceptor.java

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/interceptors/RawMessageContentRedirectInterceptor.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/interceptors/RawMessageContentRedirectInterceptor.java?rev=1388217&r1=1388216&r2=1388217&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/interceptors/RawMessageContentRedirectInterceptor.java
(original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/interceptors/RawMessageContentRedirectInterceptor.java
Thu Sep 20 21:06:56 2012
@@ -21,6 +21,7 @@ import java.io.OutputStream;
 import java.util.List;
 
 import org.apache.camel.util.IOHelper;
+import org.apache.cxf.helpers.IOUtils;
 import org.apache.cxf.interceptor.Fault;
 import org.apache.cxf.message.Message;
 import org.apache.cxf.phase.AbstractPhaseInterceptor;
@@ -49,7 +50,7 @@ public class RawMessageContentRedirectIn
             OutputStream os = message.getContent(OutputStream.class);
 
             try {
-                IOHelper.copy(is, os);
+                IOUtils.copy(is, os);
             } catch (Exception e) {
                 throw new Fault(e);
             } finally {



Mime
View raw message