Interface MappingMessageRouterManagement
- All Known Implementing Classes:
- AbstractMappingMessageRouter,- ErrorMessageExceptionTypeRouter,- ExpressionEvaluatingRouter,- HeaderValueRouter,- MethodInvokingRouter,- PayloadTypeRouter,- XPathRouter
public interface MappingMessageRouterManagement
Exposes channel mapping operations when the router is proxied.
 
setChannelMappings(Map) is also exposed. This cannot
 be used with a control-bus, but it can be used programmatically
 or over JMX.- Since:
- 2.1
- Author:
- Gary Russell
- 
Method SummaryModifier and TypeMethodDescriptionProvide a collection of channel names to which we have routed messages where the channel was not explicitly mapped.voidRemove a channel mapping for the given key if present.voidreplaceChannelMappings(Properties channelMappings) Provide mappings from channel keys to channel names.voidsetChannelMapping(String key, String channelName) Add a channel mapping from the provided key to channel name.voidsetChannelMappings(Map<String, String> channelMappings) Provide mappings from channel keys to channel names.
- 
Method Details- 
setChannelMappingAdd a channel mapping from the provided key to channel name.- Parameters:
- key- The key.
- channelName- The channel name.
 
- 
removeChannelMappingRemove a channel mapping for the given key if present.- Parameters:
- key- The key.
 
- 
replaceChannelMappingsProvide mappings from channel keys to channel names.- Parameters:
- channelMappings- The channel mappings.
- Since:
- 4.0
 
- 
getChannelMappings- Returns:
- an unmodifiable map of channel mappings.
- Since:
- 4.0
 
- 
setChannelMappingsProvide mappings from channel keys to channel names. Channel names will be resolved by theDestinationResolver.- Parameters:
- channelMappings- The channel mappings.
- Since:
- 4.0
 
- 
getDynamicChannelNamesProvide a collection of channel names to which we have routed messages where the channel was not explicitly mapped.Implementations may choose to return only the most recent channel names. - Returns:
- a collection of channel names to which we have routed messages where the channel was not explicitly mapped.
- Since:
- 4.3
 
 
-