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

      protected final @Nullable 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

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

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