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.
 java.lang.Object handleRequestMessage(Message<?> message)
          Subclasses must implement this method to handle the request Message.
 void setReplyChannel(MessageChannel replyChannel)
           
 
Methods inherited from class org.springframework.integration.handler.AbstractReplyProducingMessageHandler
getOutputChannel, handleMessageInternal, handleResult, sendReplyMessage, setBeanFactory, setChannelResolver, setOutputChannel, setRequiresReply, setSendTimeout
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getOrder, handleMessage, resolveReplyChannel, 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 java.lang.Object handleRequestMessage(Message<?> message)
Description copied from class: AbstractReplyProducingMessageHandler
Subclasses must implement this method to handle the request Message. The return value may be a Message, a MessageBuilder, or any plain Object. The base class will handle the final creation of a reply Message from any of those starting points. If the return value is null, the Message flow will end here.

Specified by:
handleRequestMessage in class AbstractReplyProducingMessageHandler