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.
Create a HeaderEnricher with the given map of headers.
Method Detail
setMessageProcessor
public <T> void setMessageProcessor(MessageProcessor<T> messageProcessor)
setDefaultOverwrite
public void setDefaultOverwrite(boolean defaultOverwrite)
setShouldSkipNulls
public void setShouldSkipNulls(boolean shouldSkipNulls)
Specify whether null values, such as might be returned from an expression evaluation,
should be skipped. The default value is true. Set this to false if a
null value should trigger removal of the corresponding header instead.