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

toD with HTTP endpoints - Optimise dynamic query to leverage HTTP_QUERY header

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.22.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      We can consider for some HTTP components that support dynamic parts of their endpoints from Camel headers such as HTTP_QUERY and others.

      We can then in toD detect those components and then build a processor chain that does

      1. setHeader - set dynamic header HTTP_QUERY
      2. toD - call the endpoint with a more static uri

      This optimises to reuse the toD with more static uris, especially if you hit the same host for each toD and its only the query parameters that are dynamic.

      Today developers would need to use setHeader and to combo to do this, instead of a single toD.

      The trick is to separate the query parameters and the endpoint parameters and only set query parameters in the setHeader, and the endpoint parameters in toD.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: