Package org.apache.camel.language.jq
Class JqFunctions.Variable
java.lang.Object
org.apache.camel.language.jq.JqFunctions.ExchangeAwareFunction
org.apache.camel.language.jq.JqFunctions.Variable
- All Implemented Interfaces:
net.thisptr.jackson.jq.Function
- Enclosing class:
JqFunctions
A function that allow to retrieve an
Exchange variable value as part of JQ expression
evaluation.
As example, the following JQ expression sets the .name property to the value of the variable named
CommitterName.
.name = variable(\"CommitterName\")"
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoApply(net.thisptr.jackson.jq.Scope scope, List<net.thisptr.jackson.jq.Expression> args, com.fasterxml.jackson.databind.JsonNode in, net.thisptr.jackson.jq.path.Path path, net.thisptr.jackson.jq.PathOutput output, net.thisptr.jackson.jq.Version version, org.apache.camel.Exchange exchange) Methods inherited from class org.apache.camel.language.jq.JqFunctions.ExchangeAwareFunction
apply
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
Variable
public Variable()
-
-
Method Details
-
doApply
protected void doApply(net.thisptr.jackson.jq.Scope scope, List<net.thisptr.jackson.jq.Expression> args, com.fasterxml.jackson.databind.JsonNode in, net.thisptr.jackson.jq.path.Path path, net.thisptr.jackson.jq.PathOutput output, net.thisptr.jackson.jq.Version version, org.apache.camel.Exchange exchange) throws net.thisptr.jackson.jq.exception.JsonQueryException - Specified by:
doApplyin classJqFunctions.ExchangeAwareFunction- Throws:
net.thisptr.jackson.jq.exception.JsonQueryException
-