Class SingleInputExpressionDefinition

  • 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:
    NamespaceAwareExpression, TokenizerExpression

    public abstract class SingleInputExpressionDefinition
    extends ExpressionDefinition
    Expression for which the source of the input (body, header or property) can be provided.
    • Constructor Detail

      • SingleInputExpressionDefinition

        protected SingleInputExpressionDefinition()
      • SingleInputExpressionDefinition

        protected SingleInputExpressionDefinition​(String expression)
      • SingleInputExpressionDefinition

        protected SingleInputExpressionDefinition​(org.apache.camel.Expression expression)
    • Method Detail

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