Andrea Cosentino created CAMEL-23515:
----------------------------------------
Summary: camel-nats - Use dedicated HeaderFilterStrategy aligned
with sibling components
Key: CAMEL-23515
URL: https://issues.apache.org/jira/browse/CAMEL-23515
Project: Camel
Issue Type: Improvement
Components: camel-nats
Reporter: Andrea Cosentino
{{camel-nats}} currently defaults its {{headerFilterStrategy}} to a bare {{new
DefaultHeaderFilterStrategy()}} with no further configuration
({{NatsConfiguration.java:119}}).
Other components in the same area (camel-kafka, camel-mail, camel-coap,
camel-google-pubsub, camel-jms, camel-sjms) ship a dedicated subclass that
configures {{setInFilterStartsWith("Camel", "camel", "org.apache.camel.")}} and
{{setLowerCase(true)}} so the inbound header set is aligned with the rest of
the project.
Proposal: introduce {{NatsHeaderFilterStrategy}} following the
{{KafkaHeaderFilterStrategy}} / {{MailHeaderFilterStrategy}} shape, and switch
the default in {{NatsConfiguration}} to use the new strategy. Add unit tests on
the new strategy and an upgrade-guide entry for 4.21.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)