org.springframework.integration.handler
Class AbstractReplyProducingMessageHandler
java.lang.Object
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.handler.AbstractReplyProducingMessageHandler
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanFactoryAware, org.springframework.core.Ordered, MessageHandler
- Direct Known Subclasses:
- AbstractMessageSplitter, AbstractRemotingOutboundGateway, AbstractWebServiceOutboundGateway, BridgeHandler, FileWritingMessageHandler, HttpOutboundEndpoint, 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
Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SEND_TIMEOUT
public static final long DEFAULT_SEND_TIMEOUT
- See Also:
- Constant Field Values
AbstractReplyProducingMessageHandler
public AbstractReplyProducingMessageHandler()
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)
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)
sendReplyMessage
protected boolean sendReplyMessage(Message<?> replyMessage,
MessageChannel replyChannel)