org.springframework.integration.gateway
Class GatewayInvokingMessageHandler

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.GatewayInvokingMessageHandler
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered, MessageProducer, MessageHandler, ComponentMetadataProvider

public class GatewayInvokingMessageHandler
extends AbstractReplyProducingMessageHandler

Will decorate 'gateway' as MessageHandler so it could be included in the chain.

Since:
2.0
Author:
Oleg Zhurakousky

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
GatewayInvokingMessageHandler(org.springframework.integration.gateway.GenericSendAndRecieveGateway gateway)
           
 
Method Summary
protected  java.lang.Object handleRequestMessage(Message<?> requestMessage)
          Will simply delegate to the original gateway
protected  void populateComponentMetadata(ComponentMetadata metadata)
          Subclasses may override this to add attributes to the ComponentMetadata.
 
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
getOrder, handleMessage, resolveReplyChannel, setOrder
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getBeanName, getChannelResolver, getComponentMetadata, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setConversionService, setTaskScheduler, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GatewayInvokingMessageHandler

public GatewayInvokingMessageHandler(org.springframework.integration.gateway.GenericSendAndRecieveGateway gateway)
Parameters:
gateway -
Method Detail

populateComponentMetadata

protected void populateComponentMetadata(ComponentMetadata metadata)
Description copied from class: IntegrationObjectSupport
Subclasses may override this to add attributes to the ComponentMetadata.

Overrides:
populateComponentMetadata in class IntegrationObjectSupport

handleRequestMessage

protected java.lang.Object handleRequestMessage(Message<?> requestMessage)
Will simply delegate to the original gateway

Specified by:
handleRequestMessage in class AbstractReplyProducingMessageHandler