/
Custom Processor

Custom Processor

If none of the standard processors that are provided contains the needed functionality, then you can always define your own custom processor. To create a custom processor, define a class that implements the org.apache.camel.Processor interface and overrides the process() method.

 

public class MyProcessor implements org.apache.camel.Processor { public void process(org.apache.camel.Exchange exchange) { inMessage = exchange.getIn(); if (inMessage != null) { inMessage.removeHeader("myHeader"); } } };

Related content

Groovy API for Custom Form Manipulation
Groovy API for Custom Form Manipulation
Read with this
Create Exchange Instances (Route Definition)
Create Exchange Instances (Route Definition)
More like this
Transform Message Content (Route Definition)
Transform Message Content (Route Definition)
More like this
XML DSL (Message Translator)
XML DSL (Message Translator)
More like this