CAMEL-23629: camel-irc - align Exchange header constant names with Camel naming convention#23594
Open
oscerd wants to merge 1 commit into
Open
CAMEL-23629: camel-irc - align Exchange header constant names with Camel naming convention#23594oscerd wants to merge 1 commit into
oscerd wants to merge 1 commit into
Conversation
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
davsclaus
approved these changes
May 28, 2026
…mel naming convention Renames the Exchange header string values in IrcConstants from the non-Camel-prefixed "irc.*" namespace (irc.messageType, irc.target, irc.sendTo, irc.user.kicked, irc.user.host, irc.user.nick, irc.user.servername, irc.user.username, irc.num, irc.value) to the project-wide "CamelIrc*" PascalCase convention used across the rest of the Camel component catalog, matching the pattern established in CAMEL-23576 (camel-jira), CAMEL-23574 (camel-dns), CAMEL-23575 (camel-mongodb-gridfs), CAMEL-23578 (camel-web3j), CAMEL-23579 (camel-pdf), CAMEL-23580 (camel-openstack), CAMEL-23581 (camel-elasticsearch / camel-opensearch), CAMEL-23582 (camel-github2), CAMEL-23585 (camel-arangodb), CAMEL-23587 (camel-jt400), CAMEL-23588 (camel-undertow), CAMEL-23590 (camel-milo), CAMEL-23592 (camel-shiro), and CAMEL-23597 (camel-solr). The Java field names (IRC_MESSAGE_TYPE, IRC_TARGET, IRC_SEND_TO, IRC_USER_KICKED, IRC_USER_HOST, IRC_USER_NICK, IRC_USER_SERVERNAME, IRC_USER_USERNAME, IRC_NUM, IRC_VALUE) are unchanged so routes and code referencing the constants symbolically continue to work without changes. Routes that set or read the headers using the literal "irc.*" string values must be updated to use the new "CamelIrc*" values; the 4.21 upgrade guide documents this as a "potential breaking change" with the rename table and the cross-transport HeaderFilterStrategy behaviour note used by the sibling sub-tasks. Updates the camel-irc integration tests (IrcPrivmsgIT, IrcMultiChannelRouteIT, IrcsListUsersIT) that referenced the literal "irc.*" string values to use the IrcConstants symbolic references instead. Updates the irc-component.adoc message-header references and the IrcConfiguration.setNamesOnJoin Javadoc, regenerates the camel-catalog and component-local catalog artifacts, and adds the "camel-irc - potential breaking change" entry to the 4.21 upgrade guide. Tracker: CAMEL-23577 Reported by Claude Code on behalf of Andrea Cosentino Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
Contributor
|
🧪 CI tested the following changed modules:
All tested modules (10 modules)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Renames the Exchange header string values in
IrcConstantsfrom the non-Camel-prefixedirc.*namespace to the project-wideCamelIrc*PascalCase convention, following the umbrella tracker CAMEL-23577 and matching the pattern shipped for the sibling components:camel-jira(CAMEL-23576),camel-dns(CAMEL-23574),camel-mongodb-gridfs(CAMEL-23575),camel-web3j(CAMEL-23578),camel-pdf(CAMEL-23579),camel-openstack(CAMEL-23580),camel-elasticsearch/camel-opensearch(CAMEL-23581),camel-github2(CAMEL-23582),camel-arangodb(CAMEL-23585),camel-jt400(CAMEL-23587),camel-undertow(CAMEL-23588),camel-milo(CAMEL-23590),camel-shiro(CAMEL-23592) andcamel-solr(CAMEL-23597).Jira: https://issues.apache.org/jira/browse/CAMEL-23629
Constants renamed
IrcConstants.IRC_MESSAGE_TYPEirc.messageTypeCamelIrcMessageTypeIrcConstants.IRC_TARGETirc.targetCamelIrcTargetIrcConstants.IRC_SEND_TOirc.sendToCamelIrcSendToIrcConstants.IRC_USER_KICKEDirc.user.kickedCamelIrcUserKickedIrcConstants.IRC_USER_HOSTirc.user.hostCamelIrcUserHostIrcConstants.IRC_USER_NICKirc.user.nickCamelIrcUserNickIrcConstants.IRC_USER_SERVERNAMEirc.user.servernameCamelIrcUserServernameIrcConstants.IRC_USER_USERNAMEirc.user.usernameCamelIrcUserUsernameIrcConstants.IRC_NUMirc.numCamelIrcNumIrcConstants.IRC_VALUEirc.valueCamelIrcValueCompatibility
The Java field names are unchanged, so routes that reference the constants symbolically (
header(IrcConstants.IRC_SEND_TO),setHeader(IrcConstants.IRC_TARGET, ...), etc.) continue to work without modification. Routes that set or read the headers by their literalirc.*string value must be updated to use the newCamelIrc*values — documented in the 4.21 upgrade guide as a "potential breaking change" with the rename table and the cross-transportHeaderFilterStrategybehaviour note used by the sibling sub-tasks.Changes
IrcConstants.java— string values of all 10 header constants.IrcConfiguration.java—setNamesOnJoinJavadoc reference to theCamelIrcNumheader.IrcPrivmsgIT,IrcMultiChannelRouteIT,IrcsListUsersIT— switched from literalirc.*strings toIrcConstantssymbolic references.irc-component.adoc— message-header table and example route references.components/camel-irc/src/generated/.../irc.json) and top-level catalog (catalog/camel-catalog/src/generated/.../irc.json).dsl/camel-endpointdsl/.../IrcEndpointBuilderFactory.java) — picks up the Javadoc-derived header-value reference insetNamesOnJoin.Local build
Full reactor
mvn clean install -DskipTestsfrom the worktree root — green (13014 goals, 11262 executed, 1752 cached). All cross-module codegen (catalog mirror + endpoint DSL builders) ran and is included in the commit.Claude Code on behalf of Andrea Cosentino