[ 
https://issues.apache.org/jira/browse/CAMEL-19723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17789022#comment-17789022
 ] 

Claus Ibsen commented on CAMEL-19723:
-------------------------------------

But it may be a nicer to have an EIP to make it more user and tooling friendly.

[~klease78] maybe you want to implement another EIP

> camel-core - EIP - Allow convert for the header
> -----------------------------------------------
>
>                 Key: CAMEL-19723
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19723
>             Project: Camel
>          Issue Type: Wish
>            Reporter: Tuomas Palenius
>            Priority: Minor
>
> There's quite often need to convert the header to some format. Now we use the 
> following method:
> {code:java}
> .setBody().header("myheader")
> .convertBodyTo(String.class)
> .setHeader("myheader").body()
> {code}
> This adds verbosity to the code and could be done more elegantly if there was 
> own method for this. Similar to 
> {code:java}
> .convertBodyTo(class){code}
>  but for the header. Example:
> {code:java}
> .convertHeaderTo("myheader", String.class){code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to