|
Page Edited :
CAMEL :
Content Based Router
Content Based Router has been edited by Jonathan Anstey (Aug 08, 2008). Content:Content Based RouterThe Content Based Router The following example shows how to route a request from an input seda:a endpoint to either seda:b, seda:c or seda:d depending on the evaluation of various Predicate expressions Using the Fluent Builders RouteBuilder builder = new RouteBuilder() { public void configure() { from("seda:a").choice().when(header("foo").isEqualTo("bar")).to("seda:b") .when(header("foo").isEqualTo("cheese")).to("seda:c").otherwise().to("seda:d"); } };
|
Unsubscribe or edit your notifications preferences
