Class ConstantExpression

  • 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="1.5.0",
              label="language,core",
              title="Constant")
    public class ConstantExpression
    extends ExpressionDefinition
    A fixed value set only once during the route startup.
    • Constructor Detail

      • ConstantExpression

        public ConstantExpression()
      • ConstantExpression

        public ConstantExpression​(String expression)
    • Method Detail

      • getResultType

        public Class<?> getResultType()
      • setResultType

        public void setResultType​(Class<?> resultType)
        Sets the class of the constant type
      • getResultTypeName

        public String getResultTypeName()
      • setResultTypeName

        public void setResultTypeName​(String resultTypeName)
        Sets the class name of the constant type