Class AbstractReplyProducingPostProcessingMessageHandler

All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>, Aware, BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, Ordered, ComponentSourceAware, ExpressionCapable, Orderable, MessageProducer, HeaderPropagationAware, PostProcessingMessageHandler, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, MessageHandler, reactor.core.CoreSubscriber<Message<?>>
Direct Known Subclasses:
MessageFilter

public abstract class AbstractReplyProducingPostProcessingMessageHandler extends AbstractReplyProducingMessageHandler implements PostProcessingMessageHandler
Since:
3.0
Author:
Gary Russell, Artem Bilan
  • Constructor Details

    • AbstractReplyProducingPostProcessingMessageHandler

      public AbstractReplyProducingPostProcessingMessageHandler()
  • Method Details

    • 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.
      Parameters:
      postProcessWithinAdvice - true if the post processing should be performed within the advice.
    • handleRequestMessage

      @Nullable protected final 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
      Parameters:
      requestMessage - The request message.
      Returns:
      The result of handling the message, or null.
    • doInvokeAdvisedRequestHandler

      @Nullable protected final Object doInvokeAdvisedRequestHandler(Message<?> message)
      Overrides:
      doInvokeAdvisedRequestHandler in class AbstractReplyProducingMessageHandler
    • doHandleRequestMessage

      @Nullable protected abstract Object doHandleRequestMessage(Message<?> requestMessage)