From 70efddd8493c596138ba2651d38bdac6622df52d Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Thu, 18 Jun 2009 21:59:21 +0000 Subject: [PATCH] Added documentation about new HeaderValueRouter --- spring-integration-reference/src/router.xml | 40 +++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/spring-integration-reference/src/router.xml b/spring-integration-reference/src/router.xml index cd3f7f4c09..41d676c8d6 100644 --- a/spring-integration-reference/src/router.xml +++ b/spring-integration-reference/src/router.xml @@ -27,6 +27,46 @@ ]]> +
+ HeaderValueRouter + + A HeaderValueRouter will send Messages to the channel based on the individual header value mappings. + When HeaderValueRouter is created it is initialized with the name of the header to be evaluated, using constructor-arg. + The value of the header could be one of two things: + + 1. Arbitrary value + + + 2. Channel name + + + If arbitrary value, then channelResolver should be provided to map header values to channel names. + Example below uses MapBasedChannelResolver to set up a map of header values to channel names. + + + + + + + + + + + + + +]]> + If channelResolver is not specified, then header value will be treated as channel name + making configuration much simpler, where no channelResolver needs to be specified. + + + +]]> + +
RecipientListRouter