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

Allow to call OGNL on simple bodyAs function

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.18.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: