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

Provide endpoint producer builder for https endpoints

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.2.0
    • camel-endpointdsl, tooling
    • None
    • Unknown

    Description

      When one uses the camel-http component to call a https url, one has to set the URL via the header:

      from(...)
          ...
          .setHeader(Exchange.HTTP_URL, constant("https://fruityvice.com/api/fruit/all"))
          .to(http("ignored").httpMethod(HttpMethods.GET))
          ....
      

      or use the (already present) corresponding endpoint builder factory, setting the component to "https":

      from(...)
          ...
          .to(HttpEndpointBuilderFactory.endpointBuilder("https", "fruityvice.com/api/fruit/all").httpMethod(HttpMethods.GET))
          ...
      

      It would be nice to have a separte https(...)-method to call "https"-resources:

      from(...)
          ...
          .to(https("fruityvice.com/api/fruit/all").httpMethod(HttpMethods.GET))
          ...
      


      Story:
      As a camel-user
      When I need to call a https URL
      Then I want an endpoint builder with dsl support

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              turing85 Marco Bungart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: