[ https://issues.apache.org/jira/browse/CAMEL-19723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-19723: ----------------------------------- Assignee: Claus Ibsen > 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 > Components: camel-core, eip > Reporter: Tuomas Palenius > Assignee: Claus Ibsen > Priority: Minor > Fix For: 4.3.0 > > > 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)