public abstract class AbstractReplyProducingMessageHandler extends AbstractMessageHandler implements MessageProducer, org.springframework.beans.factory.BeanClassLoaderAware
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractReplyProducingMessageHandler.RequestHandler |
logger| Constructor and Description |
|---|
AbstractReplyProducingMessageHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit() |
protected java.lang.Object |
doInvokeAdvisedRequestHandler(org.springframework.messaging.Message<?> message) |
protected MessagingTemplate |
getMessagingTemplate()
Provides access to the
MessagingTemplate for subclasses. |
protected void |
handleMessageInternal(org.springframework.messaging.Message<?> message) |
protected abstract java.lang.Object |
handleRequestMessage(org.springframework.messaging.Message<?> requestMessage)
Subclasses must implement this method to handle the request Message.
|
protected boolean |
hasAdviceChain() |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain) |
void |
setBeanClassLoader(java.lang.ClassLoader beanClassLoader) |
void |
setChannelResolver(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> channelResolver)
Set the DestinationResolver
|
void |
setOutputChannel(org.springframework.messaging.MessageChannel outputChannel)
Specify the MessageChannel to which produced Messages should be sent.
|
void |
setRequiresReply(boolean requiresReply)
Flag whether a reply is required.
|
void |
setSendTimeout(long sendTimeout)
Set the timeout for sending reply Messages.
|
protected boolean |
shouldCopyRequestHeaders()
Subclasses may override this.
|
getComponentType, getOrder, handleMessage, setOrder, setShouldTrackafterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic AbstractReplyProducingMessageHandler()
public void setOutputChannel(org.springframework.messaging.MessageChannel outputChannel)
MessageProducersetOutputChannel in interface MessageProducerpublic void setSendTimeout(long sendTimeout)
public void setChannelResolver(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> channelResolver)
public void setRequiresReply(boolean requiresReply)
protected MessagingTemplate getMessagingTemplate()
MessagingTemplate for subclasses.public void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
protected boolean hasAdviceChain()
public void setBeanClassLoader(java.lang.ClassLoader beanClassLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwareprotected final void onInit()
IntegrationObjectSupportonInit in class IntegrationObjectSupportprotected void doInit()
protected final void handleMessageInternal(org.springframework.messaging.Message<?> message)
handleMessageInternal in class AbstractMessageHandlerprotected java.lang.Object doInvokeAdvisedRequestHandler(org.springframework.messaging.Message<?> message)
protected boolean shouldCopyRequestHeaders()
protected abstract java.lang.Object handleRequestMessage(org.springframework.messaging.Message<?> requestMessage)