Gary Russell 43d786f701 GH-236: Backwards Compatibility
Resolves https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/issues/236

- Restore the mapped headers configuration for embedding headers
- Configure the header mapper based on the header mode
- On the outbound side, set the mapper to `null` unless the header mode is not null and not `headers`
  this suppresses the channel adapter from setting up headers - for compatibility with < 0.11 brokers
- On the inbound side, set the `BinderHeaders.NATIVE_HEADERS_PRESENT` header if native headers found
- Add a configuration capability allowing the user to provide his/her own header mapper

- Add a test case with 3 producers (embedded, native, and no headers) and a consumer to verify it can
  consume all 3

Requires https://github.com/spring-cloud/spring-cloud-stream/pull/1107

Polishing - fix else clause when configuring the header mapper.
2017-10-24 15:24:17 -04:00
2017-10-05 11:54:23 -04:00
2017-01-11 12:02:03 -05:00
2016-11-08 11:34:34 -05:00
2016-09-20 09:15:17 -04:00

Spring Cloud Stream Binder for Apache Kafka
Description
Spring Cloud Stream binders for Apache Kafka and Kafka Streams
Readme 7.9 MiB
Languages
Java 99.9%