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

camel-core - Optional API on Exchange / Message

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • 3.x
    • camel-core
    • None
    • Unknown

    Description

      I wonder if we should add methods to Exchange and Message that uses java.util.Option as return value.

      Optional getOptionalProperty(String name)
      Optional<T> getOptionalProperty(String name, Class<T> type)

      And ditto for Message with its header and body (although a null body is much more rare)

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: