Tuomas Palenius created CAMEL-19723:
---------------------------------------

             Summary: 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


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