Package org.apache.camel.language.jq
Class JqFunctions.Body
java.lang.Object
org.apache.camel.language.jq.JqFunctions.Body
- All Implemented Interfaces:
net.thisptr.jackson.jq.Function
- Enclosing class:
JqFunctions
A function that returns the message body as part of JQ expression evaluation.
As example, the following JQ expression sets the
.name property to the message body.
.name = body()"
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
Body
public Body()
-
-
Method Details
-
apply
public void apply(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) throws net.thisptr.jackson.jq.exception.JsonQueryException - Specified by:
applyin interfacenet.thisptr.jackson.jq.Function- Throws:
net.thisptr.jackson.jq.exception.JsonQueryException
-