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
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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SingleInputTypedExpressionDefinition.AbstractBuilder<T extends SingleInputTypedExpressionDefinition.AbstractBuilder<T,E>,E extends SingleInputTypedExpressionDefinition>
AbstractBuilder
is the base builder for typed expression.
-
Constructor Summary
Constructors Modifier Constructor Description protected
SingleInputTypedExpressionDefinition()
protected
SingleInputTypedExpressionDefinition(String expression)
protected
SingleInputTypedExpressionDefinition(org.apache.camel.Expression expression)
protected
SingleInputTypedExpressionDefinition(SingleInputTypedExpressionDefinition.AbstractBuilder<?,?> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHeaderName()
String
getPropertyName()
void
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 Detail
-
SingleInputTypedExpressionDefinition
protected SingleInputTypedExpressionDefinition()
-
SingleInputTypedExpressionDefinition
protected SingleInputTypedExpressionDefinition(String expression)
-
SingleInputTypedExpressionDefinition
protected SingleInputTypedExpressionDefinition(org.apache.camel.Expression expression)
-
SingleInputTypedExpressionDefinition
protected SingleInputTypedExpressionDefinition(SingleInputTypedExpressionDefinition.AbstractBuilder<?,?> builder)
-
-
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.
-
-