Spring Integration

org.springframework.integration.handler
Class AbstractReplyProducingPostProcessingMessageHandler

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.handler.AbstractMessageHandler
          extended by org.springframework.integration.handler.AbstractReplyProducingMessageHandler
              extended by org.springframework.integration.handler.AbstractReplyProducingPostProcessingMessageHandler
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, NamedComponent, Orderable, MessageHandler, MessageProducer, PostProcessingMessageHandler, TrackableComponent
Direct Known Subclasses:
MessageFilter

public abstract class AbstractReplyProducingPostProcessingMessageHandler
extends AbstractReplyProducingMessageHandler
implements PostProcessingMessageHandler

Since:
3.0
Author:
Gary Russell

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.integration.handler.AbstractReplyProducingMessageHandler
AbstractReplyProducingMessageHandler.RequestHandler
 
Field Summary
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
AbstractReplyProducingPostProcessingMessageHandler()
           
 
Method Summary
protected abstract  java.lang.Object doHandleRequestMessage(Message<?> requestMessage)
           
protected  java.lang.Object doInvokeAdvisedRequestHandler(Message<?> message)
           
protected  java.lang.Object handleRequestMessage(Message<?> requestMessage)
          Subclasses must implement this method to handle the request Message.
 void setPostProcessWithinAdvice(boolean postProcessWithinAdvice)
          Specify whether the post processing should occur within the scope of any configured advice classes.
 
Methods inherited from class org.springframework.integration.handler.AbstractReplyProducingMessageHandler
getMessagingTemplate, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setChannelResolver, setOutputChannel, setRequiresReply, setSendTimeout, shouldCopyRequestHeaders
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getComponentType, getOrder, handleMessage, setOrder, setShouldTrack
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.handler.PostProcessingMessageHandler
postProcess
 
Methods inherited from interface org.springframework.integration.context.NamedComponent
getComponentName
 

Constructor Detail

AbstractReplyProducingPostProcessingMessageHandler

public AbstractReplyProducingPostProcessingMessageHandler()
Method Detail

setPostProcessWithinAdvice

public void setPostProcessWithinAdvice(boolean postProcessWithinAdvice)
Specify whether the post processing should occur within the scope of any configured advice classes. If false, the post processing will occur after the advice chain returns. Default true. This is only applicable if there is in fact an advice chain present.


handleRequestMessage

protected final java.lang.Object handleRequestMessage(Message<?> requestMessage)
Description copied from class: AbstractReplyProducingMessageHandler
Subclasses must implement this method to handle the request Message. The return value may be a Message, a MessageBuilder, or any plain Object. The base class will handle the final creation of a reply Message from any of those starting points. If the return value is null, the Message flow will end here.

Specified by:
handleRequestMessage in class AbstractReplyProducingMessageHandler

doInvokeAdvisedRequestHandler

protected final java.lang.Object doInvokeAdvisedRequestHandler(Message<?> message)
Overrides:
doInvokeAdvisedRequestHandler in class AbstractReplyProducingMessageHandler

doHandleRequestMessage

protected abstract java.lang.Object doHandleRequestMessage(Message<?> requestMessage)

Spring Integration