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

Enable shortened way to access headers in mvel templates

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.6.0
    • None
    • None
    • Unknown

    Description

      When using mvel, it seems there is no short way of accessing headers. You always have to go via the exchange message object. E.g:

      return "The result is " + (request.headers.numA + request.headers.numB);

      It'd be nicer if it worked like most of the other templating components and have access to a headers object like:

      return "The result is " + (headers.numA + headers.numB);

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: