public abstract class AbstractReplyProducingMessageHandler extends AbstractMessageProducingHandler implements BeanClassLoaderAware
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractReplyProducingMessageHandler.RequestHandler
An implementation of this interface is used to wrap the
handleRequestMessage(Message)
method. |
messagingTemplateEXPRESSION_PARSER, loggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
AbstractReplyProducingMessageHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit() |
protected Object |
doInvokeAdvisedRequestHandler(Message<?> message) |
protected boolean |
getRequiresReply() |
protected void |
handleMessageInternal(Message<?> message) |
protected abstract Object |
handleRequestMessage(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(List<Advice> adviceChain) |
void |
setBeanClassLoader(ClassLoader beanClassLoader) |
void |
setRequiresReply(boolean requiresReply)
Flag whether a reply is required.
|
createOutputMessage, getOutputChannel, isAsync, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setOutputChannel, setOutputChannelName, setSendTimeout, shouldCopyRequestHeaders, shouldSplitOutputconfigureMetrics, getActiveCount, getActiveCountLong, getComponentType, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, onComplete, onError, onNext, onSubscribe, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabledafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic AbstractReplyProducingMessageHandler()
public void setRequiresReply(boolean requiresReply)
requiresReply - true if a reply is required.protected boolean getRequiresReply()
protected boolean hasAdviceChain()
public void setBeanClassLoader(ClassLoader beanClassLoader)
setBeanClassLoader in interface BeanClassLoaderAwareprotected final void onInit()
throws Exception
IntegrationObjectSupportonInit in class AbstractMessageProducingHandlerException - Any exception.protected void doInit()
protected final void handleMessageInternal(Message<?> message)
handleMessageInternal in class AbstractMessageHandlerprotected abstract Object handleRequestMessage(Message<?> requestMessage)
requestMessage - The request message.null.