public class MessageConverterConfigurer extends Object implements MessageChannelConfigurer, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
MessageChannelConfigurer that sets data types and message converters based on
BindingProperties.contentType. Also
adds a ChannelInterceptor to the message
channel to set the `ContentType` header for the message (if not already set) based on
the `ContentType` binding property of the channel.| Modifier and Type | Class and Description |
|---|---|
protected class |
MessageConverterConfigurer.PartitioningInterceptor |
| Constructor and Description |
|---|
MessageConverterConfigurer(BindingServiceProperties bindingServiceProperties,
CompositeMessageConverterFactory compositeMessageConverterFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
configureInputChannel(org.springframework.messaging.MessageChannel messageChannel,
String channelName)
Configure the given input message channel.
|
void |
configureOutputChannel(org.springframework.messaging.MessageChannel messageChannel,
String channelName)
Configure the given output message channel.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public MessageConverterConfigurer(BindingServiceProperties bindingServiceProperties, CompositeMessageConverterFactory compositeMessageConverterFactory)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void configureInputChannel(org.springframework.messaging.MessageChannel messageChannel,
String channelName)
MessageChannelConfigurerconfigureInputChannel in interface MessageChannelConfigurermessageChannel - the message channelchannelName - name of the message channelpublic void configureOutputChannel(org.springframework.messaging.MessageChannel messageChannel,
String channelName)
MessageChannelConfigurerconfigureOutputChannel in interface MessageChannelConfigurermessageChannel - the message channelchannelName - name of the message channelCopyright © 2017 Pivotal Software, Inc.. All rights reserved.