Class JqFunctions.Header

All Implemented Interfaces:
net.thisptr.jackson.jq.Function
Enclosing class:
JqFunctions

public static class JqFunctions.Header extends JqFunctions.ExchangeAwareFunction
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
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    Methods inherited from class org.apache.camel.language.jq.JqFunctions.ExchangeAwareFunction

    apply

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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:
      doApply in class JqFunctions.ExchangeAwareFunction
      Throws:
      net.thisptr.jackson.jq.exception.JsonQueryException