Package org.apache.camel.language.jq
Class JqFunctions.Header
java.lang.Object
org.apache.camel.language.jq.JqFunctions.ExchangeAwareFunction
org.apache.camel.language.jq.JqFunctions.Header
- All Implemented Interfaces:
net.thisptr.jackson.jq.Function
- Enclosing class:
JqFunctions
A function that allow to retrieve an
Message header value as part of JQ expression
evaluation.
As example, the following JQ expression sets the .name property to the value of the header named
CommitterName.
.name = header(\"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
-
Header
public Header()
-
-
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
-