public abstract class AbstractReplyProducingMessageHandler extends AbstractMessageProducingHandler implements org.springframework.beans.factory.BeanClassLoaderAware
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractReplyProducingMessageHandler.RequestHandler
An implementation of this interface is used to wrap the
handleRequestMessage(Message)
method. |
IntegrationManagement.ManagementOverridesmessagingTemplateEXPRESSION_PARSER, loggerMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME| Constructor and Description |
|---|
AbstractReplyProducingMessageHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit() |
protected java.lang.Object |
doInvokeAdvisedRequestHandler(org.springframework.messaging.Message<?> message) |
protected java.lang.ClassLoader |
getBeanClassLoader() |
IntegrationPatternType |
getIntegrationPatternType()
Return a pattern type this component implements.
|
protected boolean |
getRequiresReply() |
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)
Configure a list of
Advices to proxy a handleRequestMessage(Message) method. |
void |
setBeanClassLoader(java.lang.ClassLoader beanClassLoader) |
void |
setRequiresReply(boolean requiresReply)
Flag whether a reply is required.
|
addNotPropagatedHeaders, createOutputMessage, getNotPropagatedHeaders, getOutputChannel, isAsync, messageBuilderForReply, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setNotPropagatedHeaders, setOutputChannel, setOutputChannelName, setSendTimeout, shouldCopyRequestHeaders, shouldSplitOutput, updateNotPropagatedHeadershandleMessage, onComplete, onError, onNext, onSubscribebuildSendTimer, configureMetrics, destroy, getActiveCount, getActiveCountLong, getComponentType, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getHandlerMetrics, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMetricsCaptor, getMinDuration, getOrder, getOverrides, getStandardDeviationDuration, isCountsEnabled, isLoggingEnabled, isStatsEnabled, registerMetricsCaptor, reset, sendTimer, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabled, shouldTrackafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiterrorCount, handleCountgetBeanName, getComponentNamepublic AbstractReplyProducingMessageHandler()
public void setRequiresReply(boolean requiresReply)
requiresReply - true if a reply is required.protected boolean getRequiresReply()
public void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
Advices to proxy a handleRequestMessage(Message) method.adviceChain - the list of Advices to use.protected boolean hasAdviceChain()
public void setBeanClassLoader(java.lang.ClassLoader beanClassLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwareprotected java.lang.ClassLoader getBeanClassLoader()
public IntegrationPatternType getIntegrationPatternType()
IntegrationPatterngetIntegrationPatternType in interface IntegrationPatterngetIntegrationPatternType in class MessageHandlerSupportIntegrationPatternType this component implements.protected final void onInit()
IntegrationObjectSupportonInit in class AbstractMessageProducingHandlerprotected void doInit()
protected final void handleMessageInternal(org.springframework.messaging.Message<?> message)
handleMessageInternal in class AbstractMessageHandler@Nullable protected java.lang.Object doInvokeAdvisedRequestHandler(org.springframework.messaging.Message<?> message)
@Nullable protected abstract java.lang.Object handleRequestMessage(org.springframework.messaging.Message<?> requestMessage)
requestMessage - The request message.null.