Class SingleInputTypedExpressionDefinition

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
Direct Known Subclasses:
Hl7TerserExpression, JqExpression, JsonPathExpression

public abstract class SingleInputTypedExpressionDefinition extends TypedExpressionDefinition
Expression for which a result type can be provided along with the source of the input (body, header or property).
  • Constructor Details

    • SingleInputTypedExpressionDefinition

      protected SingleInputTypedExpressionDefinition()
    • SingleInputTypedExpressionDefinition

      protected SingleInputTypedExpressionDefinition(String expression)
    • SingleInputTypedExpressionDefinition

      protected SingleInputTypedExpressionDefinition(org.apache.camel.Expression expression)
    • SingleInputTypedExpressionDefinition

      protected SingleInputTypedExpressionDefinition(SingleInputTypedExpressionDefinition.AbstractBuilder<?,?> builder)
  • Method Details

    • 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.