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

  • 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.

主站蜘蛛池模板: 冀州市| 芮城县| 湛江市| 镇远县| 巫山县| 温宿县| 遵义市| 鸡泽县| 安阳市| 剑河县| 阳原县| 汝阳县| 抚松县| 托克逊县| 古交市| 凌源市| 辉县市| 昌图县| 赣榆县| 酒泉市| 库车县| 祁门县| 华安县| 高淳县| 托克托县| 伊春市| 凭祥市| 天门市| 海林市| 清原| 莲花县| 达拉特旗| 宝坻区| 四子王旗| 蒲城县| 穆棱市| 安达市| 滨海县| 盖州市| 隆回县| 花莲市|