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. |
IntegrationManagement.ManagementOverrides
messagingTemplate
EXPRESSION_PARSER, logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
AbstractReplyProducingMessageHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInit() |
protected Object |
doInvokeAdvisedRequestHandler(Message<?> message) |
protected ClassLoader |
getBeanClassLoader() |
IntegrationPatternType |
getIntegrationPatternType()
Return a pattern type this component implements.
|
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)
Configure a list of
Advice s to proxy a handleRequestMessage(Message) method. |
void |
setBeanClassLoader(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, updateNotPropagatedHeaders
handleMessage, onComplete, onError, onNext, onSubscribe
buildSendTimer, destroy, getComponentType, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack
afterPropertiesSet, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getThisAs
getBeanName, getComponentName
public AbstractReplyProducingMessageHandler()
public void setRequiresReply(boolean requiresReply)
requiresReply
- true if a reply is required.protected boolean getRequiresReply()
public void setAdviceChain(List<Advice> adviceChain)
Advice
s to proxy a handleRequestMessage(Message)
method.adviceChain
- the list of Advice
s to use.protected boolean hasAdviceChain()
public void setBeanClassLoader(ClassLoader beanClassLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
protected ClassLoader getBeanClassLoader()
public IntegrationPatternType getIntegrationPatternType()
IntegrationPattern
getIntegrationPatternType
in interface IntegrationPattern
getIntegrationPatternType
in class MessageHandlerSupport
IntegrationPatternType
this component implements.protected final void onInit()
IntegrationObjectSupport
onInit
in class AbstractMessageProducingHandler
protected void doInit()
protected final void handleMessageInternal(Message<?> message)
handleMessageInternal
in class AbstractMessageHandler
@Nullable protected Object doInvokeAdvisedRequestHandler(Message<?> message)
@Nullable protected abstract Object handleRequestMessage(Message<?> requestMessage)
requestMessage
- The request message.null
.