Thanks a lot.
It works!
Luis
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-message-router-tp5738769p5738835.html
Sent from the Camel - Users mailing list archive at Nabble.com.
You can use the in:header() XPath function provided by Camel to access an
IN message header.
For example:
contains(in:header('CamelFileName'), 'foo')
Or combine it with any other XPath function like starts-with, matches, etc.
The Camel XPath documentation page describes this function and others
OK, thanks for your answer. How would you code this using spring xml?
Luis
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-message-router-tp5738769p5738789.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Well, it doesn't have to be an xpath expression.
It can be any of the supported expression language options:
http://camel.apache.org/expression.html
For example, when processing files off the file system, the filename would
be added to the exchange message as a header, and you can do your
content-
give this a shot...
${header.CamelFileName} regex '^prefix.*$'
On Thu, Sep 5, 2013 at 8:58 AM, luixv wrote:
> OK, thanks for your answer. How would you code this using spring xml?
>
> Luis
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-mes