Spring Integration

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:
BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent
Direct Known Subclasses:
RemotingInboundGatewaySupport, SimpleWebServiceInboundGateway

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  Object fromMessage(Message<?> message)
           
 Object sendAndReceive(Object object)
           
 Message<?> sendAndReceiveMessage(Object object)
           
protected  Message<?> toMessage(Object object)
           
 
Methods inherited from class org.springframework.integration.gateway.AbstractMessagingGateway
doStart, doStop, getComponentType, onInit, receive, send, setExceptionMapper, setReplyChannel, setReplyTimeout, setRequestChannel, setRequestTimeout, setShouldThrowErrors
 
Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, toString, writeMessageHistory
 
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

sendAndReceiveMessage

public Message<?> sendAndReceiveMessage(Object object)
Overrides:
sendAndReceiveMessage in class AbstractMessagingGateway

sendAndReceive

public Object sendAndReceive(Object object)
Overrides:
sendAndReceive in class AbstractMessagingGateway

fromMessage

protected Object fromMessage(Message<?> message)
Overrides:
fromMessage in class AbstractMessagingGateway

toMessage

protected Message<?> toMessage(Object object)
Overrides:
toMessage in class AbstractMessagingGateway

Spring Integration

Copyright © 2010. All Rights Reserved.