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

Allow to call OGNL on simple bodyAs function

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.18.0
    • camel-core
    • None
    • Unknown

    Description

      It would be good to be able to do

      bodyAs(String).toUpperCase()
      mandatoryBodyAs(String).toUpperCase()
      

      That will convert the body to a string type first and then invoke the ognl. You can use any type not only just String.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: