org.springframework.integration.handler
Class AbstractReplyProducingMessageHandler

java.lang.Object
  extended by org.springframework.integration.handler.AbstractMessageHandler
      extended by org.springframework.integration.handler.AbstractReplyProducingMessageHandler
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, MessageHandler
Direct Known Subclasses:
AbstractMessageSplitter, AbstractRemotingOutboundGateway, AbstractWebServiceOutboundGateway, JmsOutboundGateway, MessageFilter, MessageTransformingHandler, ServiceActivatingHandler

public abstract class AbstractReplyProducingMessageHandler
extends AbstractMessageHandler
implements org.springframework.beans.factory.BeanFactoryAware

Base class for MessageHandlers that are capable of producing replies.

Author:
Mark Fisher

Field Summary
static long DEFAULT_SEND_TIMEOUT
           
 
Fields inherited from class org.springframework.integration.handler.AbstractMessageHandler
logger
 
Constructor Summary
AbstractReplyProducingMessageHandler()
           
 
Method Summary
protected  MessageChannel getOutputChannel()
           
protected  void handleMessageInternal(Message<?> message)
           
protected abstract  void handleRequestMessage(Message<?> requestMessage, ReplyMessageHolder replyMessageHolder)
           
protected  boolean sendReplyMessage(Message<?> replyMessage, MessageChannel replyChannel)
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 void setChannelResolver(ChannelResolver channelResolver)
           
 void setOutputChannel(MessageChannel outputChannel)
           
 void setRequiresReply(boolean requiresReply)
           
 void setSelector(MessageSelector selector)
           
 void setSendTimeout(long sendTimeout)
          Set the timeout for sending reply Messages.
protected  boolean supports(Message<?> message)
           
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
handleMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SEND_TIMEOUT

public static final long DEFAULT_SEND_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

AbstractReplyProducingMessageHandler

public AbstractReplyProducingMessageHandler()
Method Detail

setOutputChannel

public void setOutputChannel(MessageChannel outputChannel)

getOutputChannel

protected MessageChannel getOutputChannel()

setSendTimeout

public void setSendTimeout(long sendTimeout)
Set the timeout for sending reply Messages.


setChannelResolver

public void setChannelResolver(ChannelResolver channelResolver)

setSelector

public void setSelector(MessageSelector selector)

setRequiresReply

public void setRequiresReply(boolean requiresReply)

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware

handleMessageInternal

protected final void handleMessageInternal(Message<?> message)
Specified by:
handleMessageInternal in class AbstractMessageHandler

handleRequestMessage

protected abstract void handleRequestMessage(Message<?> requestMessage,
                                             ReplyMessageHolder replyMessageHolder)

supports

protected boolean supports(Message<?> message)

sendReplyMessage

protected boolean sendReplyMessage(Message<?> replyMessage,
                                   MessageChannel replyChannel)