org.springframework.integration.adapter
Class AbstractRemotingOutboundGateway

java.lang.Object
  extended by org.springframework.integration.handler.AbstractMessageHandler
      extended by org.springframework.integration.handler.AbstractReplyProducingMessageHandler
          extended by org.springframework.integration.adapter.AbstractRemotingOutboundGateway
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, org.springframework.core.Ordered, MessageHandler
Direct Known Subclasses:
HttpInvokerOutboundGateway, RmiOutboundGateway

public abstract class AbstractRemotingOutboundGateway
extends AbstractReplyProducingMessageHandler

A base class for outbound Messaging Gateways that use url-based remoting.

Author:
Mark Fisher

Field Summary
 
Fields inherited from class org.springframework.integration.handler.AbstractReplyProducingMessageHandler
DEFAULT_SEND_TIMEOUT
 
Fields inherited from class org.springframework.integration.handler.AbstractMessageHandler
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
AbstractRemotingOutboundGateway(java.lang.String url)
           
 
Method Summary
protected abstract  RemoteMessageHandler createHandlerProxy(java.lang.String url)
          Subclasses must implement this method.
 void handleRequestMessage(Message<?> message, ReplyMessageHolder replyHolder)
           
 void setReplyChannel(MessageChannel replyChannel)
           
 
Methods inherited from class org.springframework.integration.handler.AbstractReplyProducingMessageHandler
getOutputChannel, handleMessageInternal, sendReplyMessage, setBeanFactory, setChannelResolver, setOutputChannel, setRequiresReply, setSendTimeout
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getOrder, handleMessage, setOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRemotingOutboundGateway

public AbstractRemotingOutboundGateway(java.lang.String url)
Method Detail

setReplyChannel

public void setReplyChannel(MessageChannel replyChannel)

createHandlerProxy

protected abstract RemoteMessageHandler createHandlerProxy(java.lang.String url)
Subclasses must implement this method. It will be invoked from the constructor.


handleRequestMessage

public final void handleRequestMessage(Message<?> message,
                                       ReplyMessageHolder replyHolder)
Specified by:
handleRequestMessage in class AbstractReplyProducingMessageHandler