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