Package org.citrusframework.jms.endpoint
Class JmsEndpointConfiguration
java.lang.Object
org.citrusframework.endpoint.AbstractEndpointConfiguration
org.citrusframework.endpoint.AbstractPollableEndpointConfiguration
org.citrusframework.jms.endpoint.JmsEndpointConfiguration
- All Implemented Interfaces:
EndpointConfiguration,PollableEndpointConfiguration
- Direct Known Subclasses:
JmsSyncEndpointConfiguration
- Since:
- 1.4
- Author:
- Christoph Deppisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.ConnectionFactoryGets the connection factory.jakarta.jms.DestinationGets the destination.Gets the destination name.getDestinationName(jakarta.jms.Destination destination) Get the destination name (either a queue name or a topic name).Gets the destinationNameResolver.org.springframework.jms.support.destination.DestinationResolverSets the destination resolver.Gets the durableSubscriberName.org.springframework.jms.support.JmsHeaderMapperGets the JMS header mapper.org.springframework.jms.core.JmsTemplateGets the JMS template.Gets the message converter.booleanGets the autoStart.booleanGets the durableSubscription.booleanDetermines if internal message headers should be filtered when creating the JMS message.booleanDoes domain use topics instead of queues.booleanDetermines weather to convert outbound messages or not.voidsetAutoStart(boolean autoStart) Sets the autoStart.voidsetConnectionFactory(jakarta.jms.ConnectionFactory connectionFactory) Sets the connection factory.voidsetDestination(jakarta.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 org.citrusframework.endpoint.AbstractPollableEndpointConfiguration
getPollingInterval, setPollingIntervalMethods inherited from class org.citrusframework.endpoint.AbstractEndpointConfiguration
getTimeout, setTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.endpoint.EndpointConfiguration
getTimeout, setTimeout
-
Constructor Details
-
JmsEndpointConfiguration
public JmsEndpointConfiguration()
-
-
Method Details
-
getDestinationName
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 jakarta.jms.ConnectionFactory getConnectionFactory()Gets the connection factory.- Returns:
- the connectionFactory
-
setConnectionFactory
public void setConnectionFactory(jakarta.jms.ConnectionFactory connectionFactory) Sets the connection factory.- Parameters:
connectionFactory- the connectionFactory to set
-
getDestination
public jakarta.jms.Destination getDestination()Gets the destination.- Returns:
- the destination
-
setDestination
public void setDestination(jakarta.jms.Destination destination) Sets the destination.- Parameters:
destination- the destination to set
-
getDestinationName
Gets the destination name.- Returns:
- the destinationName
-
setDestinationName
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
Gets the message converter.- Returns:
-
setMessageConverter
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
Gets the destinationNameResolver.- Returns:
-
setDestinationNameResolver
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
Gets the durableSubscriberName.- Returns:
-
setDurableSubscriberName
Sets the durableSubscriberName.- Parameters:
durableSubscriberName-
-