Package org.apache.camel.model.language
Class SingleInputExpressionDefinition
- java.lang.Object
-
- org.apache.camel.model.language.ExpressionDefinition
-
- org.apache.camel.model.language.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SingleInputExpressionDefinition.AbstractBuilder<T extends SingleInputExpressionDefinition.AbstractBuilder<T,E>,E extends SingleInputExpressionDefinition>
AbstractBuilder
is the base builder for typed expression.
-
Constructor Summary
Constructors Modifier Constructor Description protected
SingleInputExpressionDefinition()
protected
SingleInputExpressionDefinition(String expression)
protected
SingleInputExpressionDefinition(org.apache.camel.Expression expression)
protected
SingleInputExpressionDefinition(SingleInputExpressionDefinition.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.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
-
SingleInputExpressionDefinition
protected SingleInputExpressionDefinition()
-
SingleInputExpressionDefinition
protected SingleInputExpressionDefinition(String expression)
-
SingleInputExpressionDefinition
protected SingleInputExpressionDefinition(org.apache.camel.Expression expression)
-
SingleInputExpressionDefinition
protected SingleInputExpressionDefinition(SingleInputExpressionDefinition.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.
-
-