Camel
  1. Camel
  2. CAMEL-5134

Simple language - Add support for referring to headers using square brackets

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.1
    • Fix Version/s: 2.9.2, 2.10.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      This is intuitive to refer to a header using a square brackets to indicate a key lookup

      So you can do

      "${header[foo]}"
      

      The current way would be to use a dot

      "${header.foo}"
      

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development