You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Content Filter

Camel supports the Content Filter from the EIP patterns using a Message Translator, by invoking a Java bean or by using a Processor object in the routing logic to filter content from the inbound message.

A common way to filter messages is to use an Expression in the DSL like XQuery, SQL or one of the supported Scripting Languages.

Using the Fluent Builders

Here is a simple example using the DSL directly

Error formatting macro: snippet: java.lang.NullPointerException

In this example we add our own Processor

Error formatting macro: snippet: java.lang.NullPointerException

For further examples of this pattern in use you could look at one of the JUnit tests

Using This Pattern

If you would like to use this EIP Pattern then please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you could try out some of the Examples first before trying this pattern out.

  • No labels