Last active
August 29, 2015 14:18
-
-
Save rufer7/3e691a15ed77f96f7282 to your computer and use it in GitHub Desktop.
Custom header enricher, which returns the headers to add to messages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package be.rufer.amqp.integration.messaging.enricher; | |
import org.springframework.integration.Message; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class SampleHeaderEnricher { | |
public Map<String, Object> addCustomHeaders(Message<?> message) { | |
Map<String, Object> headersToEnrich = new HashMap<>(); | |
headersToEnrich.put("CUSTOM_HEADER_KEY", "CUSTOM_HEADER_VALUE"); | |
return headersToEnrich; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment