Package com.consol.citrus.channel
Class ChannelEndpointConfiguration
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointConfiguration
-
- com.consol.citrus.channel.ChannelEndpointConfiguration
-
- All Implemented Interfaces:
com.consol.citrus.endpoint.EndpointConfiguration
- Direct Known Subclasses:
ChannelSyncEndpointConfiguration
public class ChannelEndpointConfiguration extends com.consol.citrus.endpoint.AbstractEndpointConfiguration- Since:
- 1.4
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description ChannelEndpointConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.beans.factory.BeanFactorygetBeanFactory()Gets the bean factory.org.springframework.messaging.MessageChannelgetChannel()Gets the channel.StringgetChannelName()Gets the channelName.org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel>getChannelResolver()Gets the channelResolver.ChannelMessageConvertergetMessageConverter()Gets the message converter.org.springframework.integration.core.MessagingTemplategetMessagingTemplate()Gets the messagingTemplate.booleanisFilterInternalHeaders()Determines if internal message headers should be filtered when creating the JMS message.booleanisUseObjectMessages()Determines weather to convert outbound messages or not.voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)Sets the bean factory for channel resolver.voidsetChannel(org.springframework.messaging.MessageChannel channel)Set the message channel.voidsetChannelName(String channelName)Sets the destination channel name.voidsetChannelResolver(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> channelResolver)Set the channel resolver.voidsetFilterInternalHeaders(boolean filterInternalHeaders)Setting to control filtering of internal message headers.voidsetMessageConverter(ChannelMessageConverter messageConverter)Sets the message converter.voidsetMessagingTemplate(org.springframework.integration.core.MessagingTemplate messagingTemplate)Sets the messaging template.voidsetUseObjectMessages(boolean useObjectMessages)Sets the useObjectMessages flag.
-
-
-
Method Detail
-
setChannel
public void setChannel(org.springframework.messaging.MessageChannel channel)
Set the message channel.- Parameters:
channel- the channel to set
-
setMessagingTemplate
public void setMessagingTemplate(org.springframework.integration.core.MessagingTemplate messagingTemplate)
Sets the messaging template.- Parameters:
messagingTemplate- the messagingTemplate to set
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansExceptionSets the bean factory for channel resolver.- Throws:
org.springframework.beans.BeansException- See Also:
BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)
-
getBeanFactory
public org.springframework.beans.factory.BeanFactory getBeanFactory()
Gets the bean factory.- Returns:
-
setChannelResolver
public void setChannelResolver(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> channelResolver)
Set the channel resolver.- Parameters:
channelResolver- the channelResolver to set
-
setChannelName
public void setChannelName(String channelName)
Sets the destination channel name.- Parameters:
channelName- the channelName to set
-
getChannel
public org.springframework.messaging.MessageChannel getChannel()
Gets the channel.- Returns:
- the channel
-
getChannelName
public String getChannelName()
Gets the channelName.- Returns:
- the channelName
-
getMessagingTemplate
public org.springframework.integration.core.MessagingTemplate getMessagingTemplate()
Gets the messagingTemplate.- Returns:
- the messagingTemplate
-
getChannelResolver
public org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> getChannelResolver()
Gets the channelResolver.- Returns:
- the channelResolver
-
getMessageConverter
public ChannelMessageConverter getMessageConverter()
Gets the message converter.- Returns:
-
setMessageConverter
public void setMessageConverter(ChannelMessageConverter messageConverter)
Sets the message converter.- Parameters:
messageConverter-
-
isUseObjectMessages
public boolean isUseObjectMessages()
Determines weather to convert outbound messages or not. If conversion is disabled endpoint will not convert the outbound message. Instead the raw message object will be sent over the wire.- Returns:
-
setUseObjectMessages
public void setUseObjectMessages(boolean useObjectMessages)
Sets the useObjectMessages flag.- Parameters:
useObjectMessages-
-
isFilterInternalHeaders
public boolean isFilterInternalHeaders()
Determines if internal message headers should be filtered when creating the JMS message.- Returns:
-
setFilterInternalHeaders
public void setFilterInternalHeaders(boolean filterInternalHeaders)
Setting to control filtering of internal message headers.- Parameters:
filterInternalHeaders-
-
-