davsclaus opened a new pull request, #24109:
URL: https://github.com/apache/camel/pull/24109

   ## Summary
   
   - Adds a new generated `EndpointHeaderBuilders` class that provides a 
unified entry point for all component header name builders (301 components)
   - Adds `headers()` method to `EndpointRouteBuilder` for fluent access within 
route definitions
   - Updates the endpoint DSL documentation with usage examples
   - Makes `HeaderNameBuilder.INSTANCE` public (was private) so the new 
aggregation class can access it
   
   ## Usage
   
   ```java
   // Inside EndpointRouteBuilder
   .setHeader(headers().kafka().kafkaKey(), constant("myKey"))
   .setHeader(headers().file().fileName(), constant("foo.txt"))
   
   // Via static import
   import static org.apache.camel.builder.endpoint.EndpointHeaderBuilders.*;
   .setHeader(kafka().kafkaKey(), constant("myKey"))
   ```
   
   ## Test plan
   
   - [x] New `EndpointHeaderBuildersTest` with 3 tests covering:
     - `headers()` used in a route to set a file header (integration)
     - Static access via `EndpointHeaderBuilders.file()` returns correct header 
names
     - Header name values match expected constants (e.g., 
`"CamelTimerFiredTime"`)
   - [x] Full `dsl/camel-endpointdsl` module build passes
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to