You can combine the content based router [1] and the simple language [2] to
something like:

        from("seda:a")
            .choice()
                .when(simple("${header.CamelFileName} regex 'foo.*'"))
                    .to("seda:b")
                .when(simple("${header.CamelFileName} regex 'bar.*'"))
                    .to("seda:c")
                .otherwise()
                    .to("seda:d");



[1] http://camel.apache.org/content-based-router.html
[2] http://camel.apache.org/simple.html

Christian

Reply via email to