The routing engine transports this Exchange from the endpoint to a processor, which is possible from one processor to another processor, up to a final endpoint via a Channel. The route can end at a processor returning the Exchange to the consumer endpoint if the MEP is
InOut (and using the out message), or stop with a producer endpoint, sending the message to the environment.
This means that a processor acts as an Exchange modifier—it consumes an Exchange, and eventually updates it. We can see the processor as a message translator. Actually, all Camel Exchange Integration Patterns (EIPs) are implemented using processors.
A processor is described by the
org.apache.camel.Processor interface. This interface provides only one method:
void process(Exchange exchange) throws Exception(Exchange exchange) throws Exception
As the processor directly receives an Exchange, it has access to all the...