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

  • Mastering Apache Camel
  • Jean-Baptiste Onofré
  • 132字
  • 2021-07-16 13:50:20

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.

主站蜘蛛池模板: 德化县| 呼伦贝尔市| 黄龙县| 辽宁省| 日土县| 靖西县| 德保县| 寿阳县| 板桥市| 班戈县| 华蓥市| 黄石市| 乌拉特后旗| 炉霍县| 岳阳市| 南投县| 玉树县| 喀喇| 通江县| 勃利县| 大洼县| 祁阳县| 七台河市| 讷河市| 阜南县| 宁城县| 水富县| 岐山县| 阿荣旗| 罗定市| 新巴尔虎右旗| 合川市| 庆城县| 江门市| 丹凤县| 宁津县| 双柏县| 杭锦后旗| 平利县| 安新县| 汝阳县|