org.springframework.integration.gateway
Class MessagingGatewaySupport

java.lang.Object
  extended by org.springframework.integration.gateway.MessagingGatewaySupport
Direct Known Subclasses:
SimpleMessagingGateway

public abstract class MessagingGatewaySupport
extends java.lang.Object

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

Field Summary
private  RequestReplyTemplate requestReplyTemplate
           
 
Constructor Summary
MessagingGatewaySupport()
           
MessagingGatewaySupport(MessageChannel requestChannel)
           
 
Method Summary
protected  RequestReplyTemplate getRequestReplyTemplate()
           
 void setReplyChannel(MessageChannel replyChannel)
           
 void setReplyTimeout(long replyTimeout)
           
 void setRequestChannel(MessageChannel requestChannel)
           
 void setRequestTimeout(long requestTimeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestReplyTemplate

private final RequestReplyTemplate requestReplyTemplate
Constructor Detail

MessagingGatewaySupport

public MessagingGatewaySupport(MessageChannel requestChannel)

MessagingGatewaySupport

public MessagingGatewaySupport()
Method Detail

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()