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/21 12:17:24 UTC
[camel] 01/01: add back the removed jsonpath method without result
type
This is an automated email from the ASF dual-hosted git repository.
bvahdat pushed a commit to branch jsonpath-without-resulttype
in repository https://gitbox.apache.org/repos/asf/camel.git
commit a240de5702e977360b447c0fe4052b5686bed5a9
Author: Babak Vahdat <bv...@apache.org>
AuthorDate: Mon Dec 21 13:16:50 2020 +0100
add back the removed jsonpath method without result type
---
.../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.