Package org.apache.camel.model.language
Class SingleInputTypedExpressionDefinition
java.lang.Object
org.apache.camel.model.language.ExpressionDefinition
org.apache.camel.model.language.TypedExpressionDefinition
org.apache.camel.model.language.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
Expression for which a result type can be provided along with the source of the input (body, header or property).
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
SingleInputTypedExpressionDefinition.AbstractBuilder<T extends SingleInputTypedExpressionDefinition.AbstractBuilder<T,
E>, E extends SingleInputTypedExpressionDefinition> AbstractBuilder
is the base builder for typed expression. -
Constructor Summary
ModifierConstructorDescriptionprotected
protected
SingleInputTypedExpressionDefinition
(String expression) protected
SingleInputTypedExpressionDefinition
(org.apache.camel.Expression expression) protected
SingleInputTypedExpressionDefinition
(SingleInputTypedExpressionDefinition.AbstractBuilder<?, ?> builder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setHeaderName
(String headerName) Name of header to use as input, instead of the message bodyvoid
setPropertyName
(String propertyName) Name of property to use as input, instead of the message body.Methods inherited from class org.apache.camel.model.language.TypedExpressionDefinition
getResultType, getResultTypeName, setResultType, setResultTypeName
Methods inherited from class org.apache.camel.model.language.ExpressionDefinition
createExpression, createPredicate, evaluate, getExpression, getExpressionFactory, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getLanguage, getPredicate, getPredicateFactory, getTrim, init, initPredicate, matches, setExpression, setExpressionType, setExpressionValue, setId, setTrim, toString
-
Constructor Details
-
SingleInputTypedExpressionDefinition
protected SingleInputTypedExpressionDefinition() -
SingleInputTypedExpressionDefinition
-
SingleInputTypedExpressionDefinition
protected SingleInputTypedExpressionDefinition(org.apache.camel.Expression expression) -
SingleInputTypedExpressionDefinition
protected SingleInputTypedExpressionDefinition(SingleInputTypedExpressionDefinition.AbstractBuilder<?, ?> builder)
-
-
Method Details
-
getHeaderName
-
setHeaderName
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
-
setPropertyName
Name of property to use as input, instead of the message body. It has a lower precedent than the headerName if both are set.
-