org.springframework.integration.gateway
Class MessagingGatewaySupport
java.lang.Object
org.springframework.integration.gateway.MessagingGatewaySupport
- All Implemented Interfaces:
- MessageBusAware
- Direct Known Subclasses:
- SimpleMessagingGateway
public abstract class MessagingGatewaySupport
- extends java.lang.Object
- implements MessageBusAware
A convenient base class providing access to a RequestReplyTemplate
and exposing setter methods for
configuring request and reply MessageChannels
. May be used as a base class for framework
components so that the details of messaging are well-encapsulated and hidden from application code. For example,
see SimpleMessagingGateway
.
- Author:
- Mark Fisher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
requestReplyTemplate
private final RequestReplyTemplate requestReplyTemplate
MessagingGatewaySupport
public MessagingGatewaySupport(MessageChannel requestChannel)
MessagingGatewaySupport
public MessagingGatewaySupport()
setMessageBus
public void setMessageBus(MessageBus messageBus)
- Specified by:
setMessageBus
in interface MessageBusAware
setRequestChannel
public void setRequestChannel(MessageChannel requestChannel)
setReplyChannel
public void setReplyChannel(MessageChannel replyChannel)
setRequestTimeout
public void setRequestTimeout(long requestTimeout)
setReplyTimeout
public void setReplyTimeout(long replyTimeout)
getRequestReplyTemplate
protected final RequestReplyTemplate getRequestReplyTemplate()