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

Add a toMap data type converter to ProtobufDataFormat

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0.RC3
    • Fix Version/s: 3.0.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Currently the ProtobufDataFormat is doing a good job of converting a map to Protobuf Message without relying from other components converting the message to Protobuf message explicitly when marshalling message. However, when unmarshaling an exchange, the data format output from the unmarshaling process is either JSON or Proto Message. However, it will be also nice if it can output Map format.
      An easy way that I could think of is to add a DataTypeConverter with @converter annotation that will convert the data in case we do something like this exchange.getMessage().getBody(Map.class).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                omarsmak Omar Al-Safi
                Reporter:
                omarsmak Omar Al-Safi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m