[
https://issues.apache.org/jira/browse/CAMEL-25204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18121314#comment-18121314
]
Claus Ibsen commented on CAMEL-25204:
-------------------------------------
PR: https://github.com/apache/camel/pull/27155 (builds on
https://github.com/apache/camel/pull/27153)
_Claude Code on behalf of davsclaus_
> camel-java-io - Java DSL parser resolves the header names of the endpoint DSL
> -----------------------------------------------------------------------------
>
> Key: CAMEL-25204
> URL: https://issues.apache.org/jira/browse/CAMEL-25204
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
>
> The endpoint DSL has typed header names: headers().file().fileName() is
> "CamelFileName", headers().kafka().kafkaKey() is "CamelKafkaKey"
> (EndpointRouteBuilder.headers()). The Java DSL parser (CAMEL-25148) cannot
> read them, so a route setting such a header is partial.
> The method names are generated from the header names of the component (a
> leading Camel dropped, then camel case), so a resolver with the Camel catalog
> can find the header: the EndpointDslResolver plug gets a
> headerName(component, method) lookup, which the catalog resolver of
> camel-jbang answers from the component's endpoint headers.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)