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
@@ -1395,13 +1395,12 @@ See the <<header-copy-caution,caution>> that appears later in this section for w
1395
1395
To override the default and revert to the pre-4.3 behavior, use `STANDARD_REQUEST_HEADERS` and
1396
1396
`STANDARD_REPLY_HEADERS` in the properties.
1397
1397
1398
-
TIP: When mapping user-defined headers, the values can also contain simple wildcard patterns (such as `thing*` or `*thing`) to be matched.
1399
-
`*` matches all headers.
1398
+
TIP: When mapping user-defined headers, the values can also contain simple wildcard patterns (such as `thing*` or `\*thing`) to be matched.
1399
+
The `*` matches all headers.
1400
1400
1401
1401
Starting with version 4.1, the `AbstractHeaderMapper` (a `DefaultAmqpHeaderMapper` superclass) lets the `NON_STANDARD_HEADERS` token be configured for the `requestHeaderNames` and `replyHeaderNames` properties (in addition to the existing `STANDARD_REQUEST_HEADERS` and `STANDARD_REPLY_HEADERS`) to map all user-defined headers.
1402
1402
1403
-
The `org.springframework.amqp.support.AmqpHeaders` class identifies the default headers that are used by the
1404
-
`DefaultAmqpHeaderMapper`:
1403
+
The `org.springframework.amqp.support.AmqpHeaders` class identifies the default headers that are used by the `DefaultAmqpHeaderMapper`:
1405
1404
1406
1405
* `amqp_appId`
1407
1406
* `amqp_clusterId`
@@ -1435,7 +1434,7 @@ The `org.springframework.amqp.support.AmqpHeaders` class identifies the default
1435
1434
* `amqp_consumerQueue`
1436
1435
1437
1436
[[header-copy-caution]]
1438
-
CAUTION: As mentioned earlier in this section, using a header mapping pattern of`*` is a common way to copy all headers.
1437
+
CAUTION: As mentioned earlier in this section, using a header mapping pattern of `\*` is a common way to copy all headers.
1439
1438
However, this can have some unexpected side effects, because certain RabbitMQ proprietary properties/headers are also copied.
1440
1439
For example, when you use https://www.rabbitmq.com/federated-exchanges.html[federation], the received message may have a property named `x-received-from`, which contains the node that sent the message.
1441
1440
If you use the wildcard character `*` for the request and reply header mapping on the inbound gateway, this header is copied, which may cause some issues with federation.
@@ -1456,7 +1455,7 @@ For this purpose a `!json_*` pattern should be configured for header mapper of t
1456
1455
IMPORTANT: If you have a user-defined header that begins with `!` that you do wish to map, you need to escape it with `\`, as follows: `STANDARD_REQUEST_HEADERS,\!myBangHeader`.
1457
1456
The header named `!myBangHeader` is now mapped.
1458
1457
1459
-
NOTE: Starting with _version 5.1_, the `DefaultAmqpHeaderMapper` will fall back to mapping `MessageHeaders.ID` and `MessageHeaders.TIMESTAMP` to `MessageProperties.messageId` and `MessageProperties.timestamp` respectively, if the corresponding `amqp_messageId` or `amqp_timestamp` headers are not present on outbound messages.
1458
+
NOTE: Starting with version 5.1, the `DefaultAmqpHeaderMapper` will fall back to mapping `MessageHeaders.ID` and `MessageHeaders.TIMESTAMP` to `MessageProperties.messageId` and `MessageProperties.timestamp` respectively, if the corresponding `amqp_messageId` or `amqp_timestamp` headers are not present on outbound messages.
1460
1459
Inbound properties will be mapped to the `amqp_*` headers as before.
1461
1460
It is useful to populate the `messageId` property when message consumers are using stateful retry.
0 commit comments