concept Processor in category camel

appears as: Processor, Processor, A Processor
Camel in Action

This is an excerpt from Manning's book Camel in Action.

The Processor interface in Camel is an important building block of complex routes. It’s a simple interface, having a single method:

In this section, you’ll look at mapping data by using Processor, a Camel API. Camel can also use Java beans for mapping, which is a good practice because it allows your mapping logic to be independent of the Camel API.

Transforming using Processor

The Camel Processor is an interface defined in org.apache.camel.Processor with a single method:

public void process(Exchange exchange) throws Exception;

Processor is a low-level API in which you work directly on the Camel Exchange instance. It gives you full access to all of Camel’s moving parts from the CamelContext, which you can obtain from the Exchange by using the getContext method.