Interface HeaderPropagationAware

All Known Implementing Classes:
AbstractCorrelatingMessageHandler, AbstractMessageProducingHandler, AbstractMessageSplitter, AbstractReplyProducingMessageHandler, AbstractReplyProducingPostProcessingMessageHandler, AggregatingMessageHandler, BarrierMessageHandler, BridgeHandler, ContentEnricher, DefaultMessageSplitter, DelayHandler, ExpressionEvaluatingSplitter, FluxAggregatorMessageHandler, GatewayMessageHandler, MessageFilter, MessageHandlerChain, MessageTransformingHandler, MethodInvokingSplitter, ReplyProducingMessageHandlerWrapper, ResequencingMessageHandler, ScatterGatherHandler, ServiceActivatingHandler

public interface HeaderPropagationAware
MessageHandlers implementing this interface can propagate headers from an input message to an output message.
Since:
4.3.11
  • Method Summary

    Modifier and Type Method Description
    void addNotPropagatedHeaders​(java.lang.String... headers)
    Add headers that will NOT be copied from the inbound message if the handler is configured to copy headers, instead of overwriting the existing set.
    java.util.Collection<java.lang.String> getNotPropagatedHeaders()
    Get the header names this handler doesn't propagate.
    void setNotPropagatedHeaders​(java.lang.String... headers)
    Set headers that will NOT be copied from the inbound message if the handler is configured to copy headers.
  • Method Details

    • setNotPropagatedHeaders

      void setNotPropagatedHeaders​(java.lang.String... headers)
      Set headers that will NOT be copied from the inbound message if the handler is configured to copy headers.
      Parameters:
      headers - the headers to not propagate from the inbound message.
    • getNotPropagatedHeaders

      java.util.Collection<java.lang.String> getNotPropagatedHeaders()
      Get the header names this handler doesn't propagate.
      Returns:
      an immutable Collection of headers that will not be copied from the inbound message if the handler is configured to copy headers.
      See Also:
      setNotPropagatedHeaders(String...)
    • addNotPropagatedHeaders

      void addNotPropagatedHeaders​(java.lang.String... headers)
      Add headers that will NOT be copied from the inbound message if the handler is configured to copy headers, instead of overwriting the existing set.
      Parameters:
      headers - the headers to not propagate from the inbound message.
      See Also:
      setNotPropagatedHeaders(String...)