You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/12/21 13:37:30 UTC
[camel] branch master updated: add back the removed jsonpath method
without result type (#4804)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 76678d4 add back the removed jsonpath method without result type (#4804)
76678d4 is described below
commit 76678d48874239cc7acd19609ad9fa44307c8708
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.