camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r787598 - /camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelTransportFactory.java
Date Tue, 23 Jun 2009 09:28:58 GMT
Author: ningjiang
Date: Tue Jun 23 09:28:57 2009
New Revision: 787598

URL: http://svn.apache.org/viewvc?rev=787598&view=rev
Log:
Fixed the itest error of CustomerServicesTest

Modified:
    camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelTransportFactory.java

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelTransportFactory.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelTransportFactory.java?rev=787598&r1=787597&r2=787598&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelTransportFactory.java
(original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelTransportFactory.java
Tue Jun 23 09:28:57 2009
@@ -49,14 +49,21 @@
 
     private Collection<String> activationNamespaces;
     
-    private HeaderFilterStrategy headerFilterStrategy = new CxfHeaderFilterStrategy();
+    private HeaderFilterStrategy headerFilterStrategy;
 
     static {
-        URI_PREFIXES.add("camel://");
+        URI_PREFIXES.add("camel://");        
     }
 
     private Bus bus;
     private CamelContext camelContext;
+    
+    public CamelTransportFactory() {
+        CxfHeaderFilterStrategy defaultHeaderFilterStrategy = new CxfHeaderFilterStrategy();
+        // Doesn't filter the camel relates headers by default
+        defaultHeaderFilterStrategy.setOutFilterPattern(null);
+        headerFilterStrategy = defaultHeaderFilterStrategy;
+    }
 
     @Resource(name = "bus")
     public void setBus(Bus b) {



Mime
View raw message