Fix HTTP header propagation logic

Related to GH-422 and GH-606
This commit is contained in:
Oleg Zhurakousky
2020-11-13 17:47:41 +01:00
parent 311649c312
commit 7ddbbe52cd
3 changed files with 28 additions and 2 deletions

View File

@@ -113,6 +113,15 @@ public class CloudeventDemoApplication {
};
}
@Bean
public Function<Map<String, Object>, Map<String, Object>> consumeAndProduceCloudEventAsPojoToPojo() {
return ceMessage -> {
ceMessage.put("version", "10.0");
ceMessage.put("releaseDate", "01-10-2050");
return ceMessage;
};
}
@Bean
public CloudEventAttributesProvider cloudEventAttributesProvider() {
return new CustomCloudEventAtttributesProvider();