You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow pulsar metadata headers to be mapped outbound (#1038)
This allows pulsar metadata headers, which are excluded on the
outbound messages by default, to be included in the outbound
message headers.
Resolves#1037
Copy file name to clipboardExpand all lines: spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/pulsar-header.adoc
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -63,9 +63,9 @@ static class PulsarHeadersCustomObjectMapperTestConfig {
63
63
64
64
=== Inbound/Outbound Patterns
65
65
On the inbound side, by default, all Pulsar headers (message metadata plus user properties) are mapped to `MessageHeaders`.
66
-
On the outbound side, by default, all `MessageHeaders` are mapped, except `id`, `timestamp`, and the headers that represent the Pulsar message metadata.
66
+
On the outbound side, by default, all `MessageHeaders` are mapped, except `id`, `timestamp`, and the headers that represent the Pulsar message metadata (i.e. the headers that are prefixed with `pulsar_message_`).
67
67
You can specify which headers are mapped for inbound and outbound messages by configuring the `inboundPatterns` and `outboundPatterns` on a mapper bean you provide.
68
-
68
+
You can include Pulsar message metadata headers on the outbound messages by adding the exact header name to the `outboundPatterns` as patterns are not supported for metadata headers.
69
69
Patterns are rather simple and can contain a leading wildcard (`\*`), a trailing wildcard, or both (for example, `*.cat.*`).
70
70
You can negate patterns with a leading `!`.
71
71
The first pattern that matches a header name (whether positive or negative) wins.
Copy file name to clipboardExpand all lines: spring-pulsar/src/test/java/org/springframework/pulsar/support/header/AbstractPulsarHeaderMapperTests.java
Copy file name to clipboardExpand all lines: spring-pulsar/src/test/java/org/springframework/pulsar/support/header/ToStringPulsarHeaderMapperTests.java
0 commit comments