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

Introduce DataTypeAware interface and let MessageSupport implement it

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.19.0
    • 2.19.0
    • camel-core
    • None
    • Unknown

    Description

      Instead of carrying around the INPUT_TYPE/OUTPUT_TYPE exchange properties, let Message hold the DataType directly as those exchange properties get out of sync when Pipeline copies the message between IN and OUT.

      public interface DataTypeAware {
      
          void setDataType(DataType type);
          
          DataType getDataType();
          
          setBody(Object body, DataType type);
          
      }
      

      Attachments

        Issue Links

          Activity

            People

              igarashitm Tomohisa Igarashi
              igarashitm Tomohisa Igarashi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: