Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the asciidoc in the repository: https://github.com/apache/camel/blob/master/README.md https://github.com/apache/camel/blob/master/components/readme.adoc
For example a simple route can be created as follows.
As you can see from the above Camel uses URIs to wire endpoints together.
URI String formatting
Available as of Camel 2.0
If you have endpoint URIs that accept options and you want to be able to substitute the value, e.g. build the URI by concat the strings together, then you can use the
You can combine simple routes with filters which can be arbitrary Predicate implementations.
With a choice you provide a list of predicates and outcomes along with an optional default otherwise clause which is invoked if none of the conditions are met.
Using a custom processor
Here is an example of using a custom Processor
You can mix and match custom processors with filters and choices.