[
https://issues.apache.org/jira/browse/CAMEL-18141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541440#comment-17541440
]
Claus Ibsen commented on CAMEL-18141:
-------------------------------------
[~essobedo] something to look at that can make endpoint-dsl more awesome.
This means that the endpoint-dsl adds some special methods in Java DSL where
headers are in use, such as setHeader, because the methods today take a String
as key.
But we need a special type so the endpoint-dsl and java compiler can show the
list of possible headers. Like we do for endpoint options
> camel-endpoint-dsl - Generate fluent builders for endpoint headers
> ------------------------------------------------------------------
>
> Key: CAMEL-18141
> URL: https://issues.apache.org/jira/browse/CAMEL-18141
> Project: Camel
> Issue Type: Improvement
> Components: camel-endpointdsl, tooling
> Reporter: Claus Ibsen
> Priority: Major
> Fix For: 3.x
>
>
> Now that every component has marked up the headers it supports, we can use
> that to generate fluent builders in camel-endpointdsl.
> This makes it easier to use from this, as you do not need to have the
> camel-xxx JAR on the classpath and setup in your editor. And you dont need to
> remember the class name of the class having the headers etc.
> from xxx
> setHeader(file().fileName(), constant("foo.txt"))
> setHeader(karaf().patititionKey(), constant("3"))
--
This message was sent by Atlassian Jira
(v8.20.7#820007)