Package com.consol.citrus.jms.endpoint
Class JmsEndpointConfiguration
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointConfiguration
-
- com.consol.citrus.endpoint.AbstractPollableEndpointConfiguration
-
- com.consol.citrus.jms.endpoint.JmsEndpointConfiguration
-
- All Implemented Interfaces:
EndpointConfiguration,PollableEndpointConfiguration
- Direct Known Subclasses:
JmsSyncEndpointConfiguration
public class JmsEndpointConfiguration extends AbstractPollableEndpointConfiguration
- Since:
- 1.4
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description JmsEndpointConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jms.ConnectionFactorygetConnectionFactory()Gets the connection factory.javax.jms.DestinationgetDestination()Gets the destination.StringgetDestinationName()Gets the destination name.StringgetDestinationName(javax.jms.Destination destination)Get the destination name (either a queue name or a topic name).EndpointUriResolvergetDestinationNameResolver()Gets the destinationNameResolver.org.springframework.jms.support.destination.DestinationResolvergetDestinationResolver()Sets the destination resolver.StringgetDurableSubscriberName()Gets the durableSubscriberName.org.springframework.jms.support.JmsHeaderMappergetHeaderMapper()Gets the JMS header mapper.org.springframework.jms.core.JmsTemplategetJmsTemplate()Gets the JMS template.JmsMessageConvertergetMessageConverter()Gets the message converter.booleanisAutoStart()Gets the autoStart.booleanisDurableSubscription()Gets the durableSubscription.booleanisFilterInternalHeaders()Determines if internal message headers should be filtered when creating the JMS message.booleanisPubSubDomain()Does domain use topics instead of queues.booleanisUseObjectMessages()Determines weather to convert outbound messages or not.voidsetAutoStart(boolean autoStart)Sets the autoStart.voidsetConnectionFactory(javax.jms.ConnectionFactory connectionFactory)Sets the connection factory.voidsetDestination(javax.jms.Destination destination)Sets the destination.voidsetDestinationName(String destinationName)Sets the destination name.voidsetDestinationNameResolver(EndpointUriResolver destinationNameResolver)Sets the destinationNameResolver.voidsetDestinationResolver(org.springframework.jms.support.destination.DestinationResolver destinationResolver)Gets the destination resolver.voidsetDurableSubscriberName(String durableSubscriberName)Sets the durableSubscriberName.voidsetDurableSubscription(boolean durableSubscription)Sets the durableSubscription.voidsetFilterInternalHeaders(boolean filterInternalHeaders)Setting to control filtering of internal message headers.voidsetHeaderMapper(org.springframework.jms.support.JmsHeaderMapper headerMapper)Sets the JMS header mapper.voidsetJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate)Sets the JMS template.voidsetMessageConverter(JmsMessageConverter messageConverter)Sets the message converter.voidsetPubSubDomain(boolean pubSubDomain)Sets if domain uses topics instead of queues.voidsetUseObjectMessages(boolean useObjectMessages)Setting to control object message mode.-
Methods inherited from class com.consol.citrus.endpoint.AbstractPollableEndpointConfiguration
getPollingInterval, setPollingInterval
-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpointConfiguration
getTimeout, setTimeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.consol.citrus.endpoint.EndpointConfiguration
getTimeout, setTimeout
-
-
-
-
Method Detail
-
getDestinationName
public String getDestinationName(javax.jms.Destination destination)
Get the destination name (either a queue name or a topic name).- Parameters:
destination-- Returns:
- the destinationName
-
isPubSubDomain
public boolean isPubSubDomain()
Does domain use topics instead of queues.- Returns:
- the pubSubDomain
-
setPubSubDomain
public void setPubSubDomain(boolean pubSubDomain)
Sets if domain uses topics instead of queues.- Parameters:
pubSubDomain- the pubSubDomain to set
-
getConnectionFactory
public javax.jms.ConnectionFactory getConnectionFactory()
Gets the connection factory.- Returns:
- the connectionFactory
-
setConnectionFactory
public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
Sets the connection factory.- Parameters:
connectionFactory- the connectionFactory to set
-
getDestination
public javax.jms.Destination getDestination()
Gets the destination.- Returns:
- the destination
-
setDestination
public void setDestination(javax.jms.Destination destination)
Sets the destination.- Parameters:
destination- the destination to set
-
getDestinationName
public String getDestinationName()
Gets the destination name.- Returns:
- the destinationName
-
setDestinationName
public void setDestinationName(String destinationName)
Sets the destination name.- Parameters:
destinationName- the destinationName to set
-
getDestinationResolver
public org.springframework.jms.support.destination.DestinationResolver getDestinationResolver()
Sets the destination resolver.- Returns:
- the destinationResolver
-
setDestinationResolver
public void setDestinationResolver(org.springframework.jms.support.destination.DestinationResolver destinationResolver)
Gets the destination resolver.- Parameters:
destinationResolver- the destinationResolver to set
-
setJmsTemplate
public void setJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate)
Sets the JMS template.- Parameters:
jmsTemplate- the jmsTemplate to set
-
getJmsTemplate
public org.springframework.jms.core.JmsTemplate getJmsTemplate()
Gets the JMS template.- Returns:
- the jmsTemplate
-
getMessageConverter
public JmsMessageConverter getMessageConverter()
Gets the message converter.- Returns:
-
setMessageConverter
public void setMessageConverter(JmsMessageConverter messageConverter)
Sets the message converter.- Parameters:
messageConverter-
-
getHeaderMapper
public org.springframework.jms.support.JmsHeaderMapper getHeaderMapper()
Gets the JMS header mapper.- Returns:
- the headerMapper
-
setHeaderMapper
public void setHeaderMapper(org.springframework.jms.support.JmsHeaderMapper headerMapper)
Sets the JMS header mapper.- Parameters:
headerMapper- the headerMapper to set
-
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 using a JMS object message.- Returns:
-
setUseObjectMessages
public void setUseObjectMessages(boolean useObjectMessages)
Setting to control object message mode.- 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-
-
getDestinationNameResolver
public EndpointUriResolver getDestinationNameResolver()
Gets the destinationNameResolver.- Returns:
-
setDestinationNameResolver
public void setDestinationNameResolver(EndpointUriResolver destinationNameResolver)
Sets the destinationNameResolver.- Parameters:
destinationNameResolver-
-
isAutoStart
public boolean isAutoStart()
Gets the autoStart.- Returns:
-
setAutoStart
public void setAutoStart(boolean autoStart)
Sets the autoStart.- Parameters:
autoStart-
-
isDurableSubscription
public boolean isDurableSubscription()
Gets the durableSubscription.- Returns:
-
setDurableSubscription
public void setDurableSubscription(boolean durableSubscription)
Sets the durableSubscription.- Parameters:
durableSubscription-
-
getDurableSubscriberName
public String getDurableSubscriberName()
Gets the durableSubscriberName.- Returns:
-
setDurableSubscriberName
public void setDurableSubscriberName(String durableSubscriberName)
Sets the durableSubscriberName.- Parameters:
durableSubscriberName-
-
-