Spring Integration

org.springframework.integration.gateway
Class AbstractRemotingOutboundGateway

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.handler.AbstractMessageHandler
          extended by org.springframework.integration.handler.AbstractReplyProducingMessageHandler
              extended by org.springframework.integration.gateway.AbstractRemotingOutboundGateway
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, MessageHandler, MessageProducer, NamedComponent
Direct Known Subclasses:
HttpInvokerOutboundGateway, RmiOutboundGateway

public abstract class AbstractRemotingOutboundGateway
extends AbstractReplyProducingMessageHandler

A base class for outbound URL-based Messaging Gateways.

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(String url)
           
 
Method Summary
protected abstract  RequestReplyExchanger createProxy(String url)
          Subclasses must implement this method.
 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, setChannelResolver, setOutputChannel, setRequiresReply, setSendTimeout
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getComponentType, getOrder, handleMessage, resolveReplyChannel, setOrder
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString, writeMessageHistory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractRemotingOutboundGateway

public AbstractRemotingOutboundGateway(String url)
Method Detail

setReplyChannel

public void setReplyChannel(MessageChannel replyChannel)

createProxy

protected abstract RequestReplyExchanger createProxy(String url)
Subclasses must implement this method. It will be invoked from the constructor.


handleRequestMessage

public final 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

Spring Integration

Copyright © 2010. All Rights Reserved.