org.springframework.integration.router
Class HeaderValueRouter
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.router.AbstractMessageRouter
org.springframework.integration.router.AbstractChannelNameResolvingMessageRouter
org.springframework.integration.router.HeaderValueRouter
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, NamedComponent, MessageHandler, TrackableComponent
public class HeaderValueRouter
- extends AbstractChannelNameResolvingMessageRouter
A Message Router that resolves the MessageChannel from a header value.
- Since:
- 1.0.3
- Author:
- Oleg Zhurakousky, Mark Fisher
Constructor Summary |
HeaderValueRouter(String headerName)
Create a router that uses the provided header name to lookup a channel. |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
HeaderValueRouter
public HeaderValueRouter(String headerName)
- Create a router that uses the provided header name to lookup a channel.
getChannelIndicatorList
protected List<Object> getChannelIndicatorList(Message<?> message)
- Description copied from class:
AbstractChannelNameResolvingMessageRouter
- Subclasses must implement this method to return the channel indicators.
- Specified by:
getChannelIndicatorList
in class AbstractChannelNameResolvingMessageRouter
Copyright © 2010. All Rights Reserved.