第 13 章 简介

摘要

本章概述了 Apache Camel 支持的所有表达式语言。

13.1. 语言概述

表达式和 predicate 语言表

表 13.1 “表达式和 predicates 语言” 概述了调用表达式和 predicate 语言的不同语法。

表 13.1. 表达式和 predicates 语言

语言静态方法fluent DSL 方法XML Element注解工件

请参阅客户门户网站上的 Apache Camel 开发指南中的 Bean 集成

bean()

EIP().method()

方法

@bean

Camel 内核

第 14 章 常数

constant()

EIP().constant()

constant

@Constant

Camel 内核

第 15 章 EL

el()

EIP().el()

el

@EL

camel-juel

第 17 章 Groovy

groovy()

EIP().groovy()

groovy

@Groovy

camel-groovy

第 18 章 标头

header()

EIP().header()

header

@header

Camel 内核

第 19 章 JavaScript

javaScript()

EIP().javaScript()

javaScript

@JavaScript

camel-script

第 20 章 JoSQL

sql()

EIP().sql()

sql

@SQL

camel-josql

第 21 章 JsonPath

None

EIP().jsonpath()

jsonpath

@JsonPath

camel-jsonpath

第 22 章 JXPath

None

EIP().jxpath()

jxpath

@JXPath

camel-jxpath

第 23 章 MVEL

mvel()

EIP().mvel()

mvel

@MVEL

camel-mvel

第 24 章 Object-Graph Navigation Language (OGNL)

ognl()

EIP().ognl()

ognl

@OGNL

camel-ognl

第 25 章 PHP (已弃用)

php()

EIP().php()

php

@PHP

camel-script

第 26 章 Exchange Property

property()

EIP().property()

属性

@Property

Camel 内核

第 27 章 Python (DEPRECATED)

python()

EIP().python()

Python

@Python

camel-script

第 28 章 Ref

ref()

EIP().ref()

Ref

不适用

Camel 内核

第 29 章 Ruby (DEPRECATED)

ruby()

EIP().ruby()

Ruby

@Ruby

camel-script

第 30 章 简单语言/第 16 章 文件语言

simple()

EIP().simple()

simple

@simple

Camel 内核

第 31 章 SpEL

spel()

EIP().spel()

spel

@SpEL

camel-spring

第 32 章 XPath 语言

xpath()

EIP().xpath()

xpath

@XPath

Camel 内核

第 33 章 XQuery

xquery()

EIP().xquery()

XQuery

@XQuery

camel-saxon