Class JqExpression

  • All Implemented Interfaces:
    org.apache.camel.Expression, org.apache.camel.ExpressionFactory, HasExpressionType, org.apache.camel.Predicate, org.apache.camel.PredicateFactory, org.apache.camel.spi.ExpressionFactoryAware, org.apache.camel.spi.PredicateFactoryAware

    @Metadata(firstVersion="3.18.0",
              label="language,json",
              title="JQ")
    public class JqExpression
    extends ExpressionDefinition
    Evaluates a JQ expression against a JSON message body.
    • Constructor Detail

      • JqExpression

        public JqExpression()
      • JqExpression

        public JqExpression​(String expression)
    • Method Detail

      • getResultTypeName

        public String getResultTypeName()
      • setResultTypeName

        public void setResultTypeName​(String resultTypeName)
        Sets the class of the result type (type from output)
      • getResultType

        public Class<?> getResultType()
      • setResultType

        public void setResultType​(Class<?> resultType)
        Sets the class name of the result type (type from output)
      • getHeaderName

        public String getHeaderName()
      • setHeaderName

        public void setHeaderName​(String headerName)
        Name of header to use as input, instead of the message body

        It has as higher precedent than the propertyName if both are set.
      • getPropertyName

        public String getPropertyName()
      • setPropertyName

        public void setPropertyName​(String propertyName)
        Name of property to use as input, instead of the message body.

        It has a lower precedent than the headerName if both are set.