375.4. Functions

Camel 添加以下 XPath 功能来访问交换:

功能参数类型描述

in:body

none

对象

将返回消息正文。

in:header

标头名称

对象

将返回消息 标题中的

out:body

none

对象

将返回 出封邮件 正文。

out:header

标头名称

对象

将返回 out 消息标头。

function:properties

属性的密钥

字符串

Camel 2.5: 要使用 Properties 组件(非操作占位符)查找属性。

功能:simple

简单表达式

对象

Camel 2.5: 要评估 简单 表达式。

小心

function:properties and function:simple is not when the return type is a NodeSet,例如在 Splitter EIP 中使用时。

以下是一些使用这些功能的示例:

以及 Camel 2.5 中引入的新功能: