[ 
https://issues.apache.org/jira/browse/CAMEL-14192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Omar Al-Safi updated CAMEL-14192:
---------------------------------
    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)}}.

  was:
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 cam 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)}}.


> Add a toMap data type converter to ProtobufDataFormat  
> -------------------------------------------------------
>
>                 Key: CAMEL-14192
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14192
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 3.0.0.RC3
>            Reporter: Omar Al-Safi
>            Assignee: Omar Al-Safi
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> 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)}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to