...
Variables in XPath is defined in different namespaces. The default namespace is http://camel.apache.org/schema/spring
.
Namespace URI | Local part | Type | Description |
---|---|---|---|
http://camel.apache.org/xml/in/![]() | in | Message | the exchange.in message |
http://camel.apache.org/xml/out/![]() | out | Message | the exchange.out message |
http://camel.apache.org/xml/function/![]() | functions | Object | Camel 2.5: Additional functions |
http://camel.apache.org/xml/variables/environment-variables![]() | env | Object | OS environment variables |
http://camel.apache.org/xml/variables/system-properties![]() | system | Object | Java System properties |
http://camel.apache.org/xml/variables/exchange-property![]() |
| Object | the exchange property |
Camel will resolve variables according to either:
- namespace given
- no namespace given
Namespace given
If the namespace is given then Camel is instructed exactly what to return. However when resolving either in or out Camel will try to resolve a header with the given local part first, and return it. If the local part has the value body then the body is returned instead.
...
If there is no namespace given then Camel resolves only based on the local part. Camel will try to resolve a variable in the following steps:
- from
variables
that has been set using thevariable(name, value)
fluent builder - from message.in.header if there is a header with the given key
- from exchange.properties if there is a property with the given key
Functions
Camel adds the following XPath functions that can be used to access the exchange:
...