官术网_书友最值得收藏!

Predicates and expressions

As we will see later, most of the EIP need a rule definition to apply a routing logic to a message. The rule is described using an expression.

It means that we have to define expressions or predicates in the Enterprise Integration Patterns. An expression returns any kind of value, whereas a predicate returns true or false only.

Camel supports a lot of different languages to declare expressions or predicates. It doesn't force you to use one, it allows you to use the most appropriate one.

For instance, Camel supports xpath, mvel, ognl, python, ruby, PHP, JavaScript, SpEL (Spring Expression Language), Groovy, and so on as expression languages. It also provides native Camel prebuilt functions and languages that are easy to use such as header, constant, or simple languages.

主站蜘蛛池模板: 舞阳县| 资阳市| 阿拉善右旗| 罗山县| 富川| 疏勒县| 阜康市| 上虞市| 吴堡县| 苍山县| 易门县| 镇赉县| 泰宁县| 蒲城县| 北宁市| 定边县| 武威市| 尚志市| 信宜市| 都江堰市| 通州区| 汝南县| 大田县| 江油市| 千阳县| 金沙县| 延长县| 特克斯县| 麻城市| 剑河县| 禹州市| 勐海县| 焉耆| 台州市| 林周县| 封开县| 安福县| 加查县| 文登市| 平谷区| 马尔康县|