Claus Ibsen created CAMEL-23792:
-----------------------------------

             Summary: camel-endpointdsl - Build java constant classes with all 
the component header keys
                 Key: CAMEL-23792
                 URL: https://issues.apache.org/jira/browse/CAMEL-23792
             Project: Camel
          Issue Type: Improvement
          Components: camel-endpointdsl
            Reporter: Claus Ibsen
             Fix For: 4.x


The components has headers marked up in the xxxConstants.java source file, but 
its a bit cumbersome to use - you need the java import, you need the JAR on the 
classpath in the IDE and so on.

When you use type-safe endpoint dsl we can generate a fluent builder for this 
so you can do

setHeader(headers().kafka().CAMEL_KAFKA_XXX, simple("xxx"))

or make it a dot

setHeader(headers().kafka.CAMEL_KAFKA_XXX, simple("xxx"))

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to