camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r595315 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
Date Thu, 15 Nov 2007 14:35:18 GMT
Author: jstrachan
Date: Thu Nov 15 06:35:17 2007
New Revision: 595315

URL: http://svn.apache.org/viewvc?rev=595315&view=rev
Log:
another change for http://issues.apache.org/activemq/browse/CAMEL-222 to support setBody().xpath("/foo/bar")

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

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java?rev=595315&r1=595314&r2=595315&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
Thu Nov 15 06:35:17 2007
@@ -843,6 +843,15 @@
     /**
      * Adds a processor which sets the body on the IN message
      */
+    public ExpressionClause<ProcessorType<Type>> setBody() {
+        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type)
this);
+        process(ProcessorBuilder.setBody(clause));
+        return clause;
+    }
+
+    /**
+     * Adds a processor which sets the body on the IN message
+     */
     public Type setBody(Expression expression) {
         return process(ProcessorBuilder.setBody(expression));
     }



Mime
View raw message