camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1402485 - /camel/trunk/camel-core/src/main/java/org/apache/camel/model/WireTapDefinition.java
Date Fri, 26 Oct 2012 12:44:41 GMT
Author: ningjiang
Date: Fri Oct 26 12:44:41 2012
New Revision: 1402485

URL: http://svn.apache.org/viewvc?rev=1402485&view=rev
Log:
CAMEL-5746 add copy method to WireTapDefinition to let user choice if copying or not copying
the origin exchange

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/WireTapDefinition.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/WireTapDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/WireTapDefinition.java?rev=1402485&r1=1402484&r2=1402485&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/WireTapDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/WireTapDefinition.java Fri
Oct 26 12:44:41 2012
@@ -201,6 +201,18 @@ public class WireTapDefinition<Type exte
         setCopy(true);
         return this;
     }
+    
+    /**
+     * Uses a copy of the original exchange
+     *
+     * @param copy if it is true camel will copy the original exchange,
+     *             if it is false camel will not copy the original exchange 
+     * @return the builder
+     */
+    public WireTapDefinition<Type> copy(boolean copy) {
+        setCopy(copy);
+        return this;
+    }
 
     /**
      * @deprecated will be removed in Camel 3.0 Instead use {@link #newExchangeBody(org.apache.camel.Expression)}



Mime
View raw message