Class HeaderEnricher

java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transformer.HeaderEnricher
All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, InitializingBean, ApplicationContextAware, ComponentSourceAware, ExpressionCapable, GenericTransformer<Message<?>, Message<?>>, IntegrationPattern, NamedComponent, Transformer
Direct Known Subclasses:
XPathHeaderEnricher

public class HeaderEnricher extends IntegrationObjectSupport implements Transformer, IntegrationPattern
A Transformer that adds statically configured header values to a Message. Accepts the boolean 'overwrite' property that specifies whether values should be overwritten. By default, any existing header values for a given key, will not be replaced.
Author:
Mark Fisher, David Turanski, Artem Bilan, Gary Russell, Trung Pham
  • Constructor Details

    • HeaderEnricher

      public HeaderEnricher()
    • HeaderEnricher

      public HeaderEnricher(Map<String, ? extends HeaderValueMessageProcessor<?>> headersToAdd)
      Create a HeaderEnricher with the given map of headers.
      Parameters:
      headersToAdd - The headers to add.
  • Method Details