Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Variables in XPath is defined in different namespaces. The default namespace is http://camel.apache.org/schema/springImage Removed.

Namespace URI

Local part

Type

Description

http://camel.apache.org/xml/in/Image Removed

in

Message

the exchange.in message

http://camel.apache.org/xml/out/Image Removed

out

Message

the exchange.out message

http://camel.apache.org/xml/function/Image Removed

functions

Object

Camel 2.5: Additional functions

http://camel.apache.org/xml/variables/environment-variablesImage Removed

env

Object

OS environment variables

http://camel.apache.org/xml/variables/system-propertiesImage Removed

system

Object

Java System properties

http://camel.apache.org/xml/variables/exchange-propertyImage Removed

 

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 the variable(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:

...