You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2020/12/22 09:50:44 UTC

[camel] branch camel-3.7.x updated: add back the removed jsonpath method without result type (#4804)

This is an automated email from the ASF dual-hosted git repository.

bvahdat pushed a commit to branch camel-3.7.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.7.x by this push:
     new d34e70a  add back the removed jsonpath method without result type (#4804)
d34e70a is described below

commit d34e70a50acd8c2c0a1f96108b1e7bd346bdb8ec
Author: Babak Vahdat <bv...@apache.org>
AuthorDate: Mon Dec 21 14:37:07 2020 +0100

    add back the removed jsonpath method without result type (#4804)
---
 .../src/main/java/org/apache/camel/builder/BuilderSupport.java    | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/core/camel-core-model/src/main/java/org/apache/camel/builder/BuilderSupport.java b/core/camel-core-model/src/main/java/org/apache/camel/builder/BuilderSupport.java
index fd25daa..ace4279 100644
--- a/core/camel-core-model/src/main/java/org/apache/camel/builder/BuilderSupport.java
+++ b/core/camel-core-model/src/main/java/org/apache/camel/builder/BuilderSupport.java
@@ -123,6 +123,14 @@ public abstract class BuilderSupport {
 
     /**
      * Returns a JSonPath expression value builder
+     */
+    public ValueBuilder jsonpath(String value) {
+        JsonPathExpression exp = new JsonPathExpression(value);
+        return new ValueBuilder(exp);
+    }
+
+    /**
+     * Returns a JSonPath expression value builder
      *
      * @param value      The JSonPath expression
      * @param resultType The result type that the JSonPath expression will return.