org.springframework.integration.adapter
Class AbstractRemotingGateway

java.lang.Object
  extended by org.springframework.integration.gateway.MessagingGatewaySupport
      extended by org.springframework.integration.gateway.SimpleMessagingGateway
          extended by org.springframework.integration.adapter.AbstractRemotingGateway
All Implemented Interfaces:
MessageBusAware, MessagingGateway, MessageHandler
Direct Known Subclasses:
HttpInvokerGateway, RmiGateway

public abstract class AbstractRemotingGateway
extends SimpleMessagingGateway
implements MessageHandler

Base class for gateway adapters.

Author:
Mark Fisher

Field Summary
private  boolean expectReply
           
 
Constructor Summary
AbstractRemotingGateway(MessageChannel requestChannel)
           
 
Method Summary
 Message<?> handle(Message<?> message)
           
 void setExpectReply(boolean expectReply)
          Specify whether the gateway should be expected to return a reply.
 
Methods inherited from class org.springframework.integration.gateway.SimpleMessagingGateway
receive, receiveAndForward, send, sendAndReceive, sendAndReceiveMessage, setMessageBus, setMessageCreator, setMessageMapper, setReplyChannel, setReplyMapCapacity, setReplyTimeout, setRequestChannel
 
Methods inherited from class org.springframework.integration.gateway.MessagingGatewaySupport
getMessageExchangeTemplate, setRequestTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expectReply

private volatile boolean expectReply
Constructor Detail

AbstractRemotingGateway

public AbstractRemotingGateway(MessageChannel requestChannel)
Method Detail

setExpectReply

public void setExpectReply(boolean expectReply)
Specify whether the gateway should be expected to return a reply. The default is 'true'.


handle

public Message<?> handle(Message<?> message)
Specified by:
handle in interface MessageHandler