concept BeforeConsumer mode in category camel

appears as: BeforeConsumer mode
Camel in Action

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

As part of the API, it’s now a requirement that a token header is returned with a unique value. The mobile service is then required to use the token header for subsequent access to the API when other services are requested. To add the unique token header, you use onCompletion ❸. Switching to BeforeConsumer mode ensures that the header is added to the message before the REST service returns the response to the mobile client.