Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12655

Endpoints: Helper method with setters/getters to easily construct endpoint URIs

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.21.1
    • 3.0.0
    • None
    • Unknown

    Description

      Right now all the camel endpoints/URI's are string based. As a developer, I need to construct them manually and have to be aware of the changes brought in with each new release. I would be more confident in working with URIs if I could get some basic type checking as well as some helper methods to quickly construct the URIs. For example a set of setter methods for the properties and a single getter method for the endpoint.

      I have been constructing my own utility classes, to achieve this. for ex. have a look at apache-camel-kafka for working with Kafka endpoints. And the way I use this builder is usage-of-endpointbuilder It would be really helpful to have this feature shipped with the individual camel-components. This is a crude example but highlights the use case for the feature.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Srivastav Prakhar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: