camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1388218 - /camel/branches/camel-2.10.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/interceptors/RawMessageContentRedirectInterceptor.java
Date Thu, 20 Sep 2012 21:09:43 GMT
Author: dkulp
Date: Thu Sep 20 21:09:43 2012
New Revision: 1388218

URL: http://svn.apache.org/viewvc?rev=1388218&view=rev
Log:
Merged revisions 1388217 via  git cherry-pick from
https://svn.apache.org/repos/asf/camel/trunk

........
  r1388217 | dkulp | 2012-09-20 17:06:56 -0400 (Thu, 20 Sep 2012) | 2 lines

  Use CXF's IOUtils instead of Camels as CXF's will have some CXF specific optimizations for
this use case.

........

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

Modified: camel/branches/camel-2.10.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/interceptors/RawMessageContentRedirectInterceptor.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/interceptors/RawMessageContentRedirectInterceptor.java?rev=1388218&r1=1388217&r2=1388218&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/interceptors/RawMessageContentRedirectInterceptor.java
(original)
+++ camel/branches/camel-2.10.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/interceptors/RawMessageContentRedirectInterceptor.java
Thu Sep 20 21:09:43 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