org.springframework.integration.gateway
Class SimpleMessagingGateway

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.endpoint.AbstractEndpoint
          extended by org.springframework.integration.gateway.AbstractMessagingGateway
              extended by org.springframework.integration.gateway.SimpleMessagingGateway
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, MessagingGateway
Direct Known Subclasses:
JmsInboundGateway, RemotingInboundGatewaySupport

public class SimpleMessagingGateway
extends AbstractMessagingGateway

An implementation of AbstractMessagingGateway that delegates to an InboundMessageMapper and OutboundMessageMapper. The default implementation for both is SimpleMessageMapper.

Author:
Mark Fisher
See Also:
InboundMessageMapper, OutboundMessageMapper

Field Summary
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Constructor Summary
SimpleMessagingGateway()
           
SimpleMessagingGateway(InboundMessageMapper<?> inboundMapper, OutboundMessageMapper<?> outboundMapper)
           
 
Method Summary
protected  java.lang.Object fromMessage(Message<?> message)
          Subclasses must implement this to map from a Message to an Object.
protected  Message<?> toMessage(java.lang.Object object)
          Subclasses must implement this to map from an Object to a Message.
 
Methods inherited from class org.springframework.integration.gateway.AbstractMessagingGateway
doStart, doStop, receive, send, sendAndReceive, sendAndReceiveMessage, setReplyChannel, setReplyTimeout, setRequestChannel, setRequestTimeout, setShouldThrowErrors
 
Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint
afterPropertiesSet, isRunning, onInit, setAutoStartup, setTaskScheduler, start, stop
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
getBeanFactory, getChannelResolver, getTaskScheduler, setBeanFactory, setBeanName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleMessagingGateway

public SimpleMessagingGateway()

SimpleMessagingGateway

public SimpleMessagingGateway(InboundMessageMapper<?> inboundMapper,
                              OutboundMessageMapper<?> outboundMapper)
Method Detail

fromMessage

protected java.lang.Object fromMessage(Message<?> message)
Description copied from class: AbstractMessagingGateway
Subclasses must implement this to map from a Message to an Object.

Specified by:
fromMessage in class AbstractMessagingGateway

toMessage

protected Message<?> toMessage(java.lang.Object object)
Description copied from class: AbstractMessagingGateway
Subclasses must implement this to map from an Object to a Message.

Specified by:
toMessage in class AbstractMessagingGateway