Table 1.1 gives an overview of the different syntaxes for invoking expression and predicate languages.
Table 1.1. Expression and Predicate Languages
Language | Static Method | Fluent DSL Method | XML Element | Annotation | Artifact |
---|---|---|---|---|---|
Bean Integration | bean() |
| method | @Bean | Camel core |
Constant | constant() |
| constant | @Constant | Camel core |
EL | el() |
| el | @EL | camel-juel |
Groovy | groovy() |
| groovy | @Groovy | camel-groovy |
Header | header() |
| header | @Header | Camel core |
JavaScript | javaScript() |
| javaScript | @JavaScript | camel-script |
JoSQL | sql() |
| sql | @SQL | camel-josql |
JXPath | None |
| jxpath | @JXPath | camel-jxpath |
MVEL | mvel() |
| mvel | @MVEL | camel-mvel |
OGNL | ognl() |
| ognl | @OGNL | camel-ognl |
PHP | php() |
| php | @PHP | camel-script |
Property | property() |
| property | @Property | Camel core |
Python | python() |
| python | @Python | camel-script |
Ref | ref() |
| ref | N/A | Camel core |
Ruby | ruby() |
| ruby | @Ruby | camel-script |
Simple/File | simple() |
| simple | @Simple | Camel core |
SpEL | spel() |
| spel | @SpEL | camel-spring |
XPath | xpath() |
| xpath | @XPath | Camel core |
XQuery | xquery() |
| xquery | @XQuery | camel-saxon |