Versions Compared

Key

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

...

The following Camel-specific types are automatically bound:

  • org.apache.camel.Exchange
  • org.apache.camel.Message
  • org.apache.camel.CamelContext
  • org.apache.camel.TypeConverter
  • org.apache.camel.spi.Registry
  • java.lang.Exception

So, if you declare any of these types, they will be provided by Camel. Note that Exception will bind to the caught exception of the Exchange - so it's often usable if you employ a POJO to handle, e.g., an onException route.

...

Camel uses the following rules to determine if it's a parameter value in the method option

  • The value is either true or false which denotes a boolean value
  • The value is a numeric value such as 123 or 7
  • The value is a String enclosed with either single or double quotes
  • The value is null which denotes a null value
  • It can be evaluated using the Simple language, which means you can use, e.g., body, header.foo and other Simple tokens. Notice the tokens must be enclosed with ${ }.

Any other value is consider to be a type declaration instead - see the next section about specifying types for overloaded methods.

...