Package com.consol.citrus.channel
Class ChannelEndpointAdapter
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointAdapter
-
- com.consol.citrus.channel.ChannelEndpointAdapter
-
- All Implemented Interfaces:
EndpointAdapter
public class ChannelEndpointAdapter extends AbstractEndpointAdapter
Endpoint adapter forwards incoming requests to message channel and waits synchronously for response on reply channel. Provides channel endpoint for clients to connect to message channel in order to provide proper response message.- Since:
- 1.4
- Author:
- Christoph Deppisch
-
-
Field Summary
-
Fields inherited from class com.consol.citrus.endpoint.AbstractEndpointAdapter
log
-
-
Constructor Summary
Constructors Constructor Description ChannelEndpointAdapter(ChannelSyncEndpointConfiguration endpointConfiguration)Default constructor using endpoint configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelEndpointgetEndpoint()ChannelSyncEndpointConfigurationgetEndpointConfiguration()MessagehandleMessageInternal(Message request)voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)Sets the bean factory that constructed this endpoint adapter.-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpointAdapter
getFallbackEndpointAdapter, getName, getTestContext, getTestContextFactory, handleMessage, setFallbackEndpointAdapter, setName, setTestContextFactory
-
-
-
-
Constructor Detail
-
ChannelEndpointAdapter
public ChannelEndpointAdapter(ChannelSyncEndpointConfiguration endpointConfiguration)
Default constructor using endpoint configuration.- Parameters:
endpointConfiguration-
-
-
Method Detail
-
handleMessageInternal
public Message handleMessageInternal(Message request)
- Specified by:
handleMessageInternalin classAbstractEndpointAdapter
-
getEndpoint
public ChannelEndpoint getEndpoint()
-
getEndpointConfiguration
public ChannelSyncEndpointConfiguration getEndpointConfiguration()
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansExceptionSets the bean factory that constructed this endpoint adapter.- Parameters:
beanFactory-- Throws:
org.springframework.beans.BeansException
-
-