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 MessageExchangeTemplate 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  MessageExchangeTemplate messageExchangeTemplate
           
 
Constructor Summary
MessagingGatewaySupport()
           
 
Method Summary
protected  MessageExchangeTemplate getMessageExchangeTemplate()
          Retrieve the MessageExchangeTemplate for performing send and receive operations across channels.
 void setReplyTimeout(long replyTimeout)
          Set the timeout value for receiving reply messages.
 void setRequestTimeout(long requestTimeout)
          Set the timeout value for sending request messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageExchangeTemplate

private final MessageExchangeTemplate messageExchangeTemplate
Constructor Detail

MessagingGatewaySupport

public MessagingGatewaySupport()
Method Detail

setRequestTimeout

public void setRequestTimeout(long requestTimeout)
Set the timeout value for sending request messages. If not explicitly configured, the default is an indefinite timeout.

Parameters:
requestTimeout - the timeout value in milliseconds

setReplyTimeout

public void setReplyTimeout(long replyTimeout)
Set the timeout value for receiving reply messages. If not explicitly configured, the default is an indefinite timeout.

Parameters:
replyTimeout - the timeout value in milliseconds

getMessageExchangeTemplate

protected final MessageExchangeTemplate getMessageExchangeTemplate()
Retrieve the MessageExchangeTemplate for performing send and receive operations across channels.