You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/03/04 14:39:44 UTC

[jira] Resolved: (CAMEL-2522) Simple Language - Add bodyAs so you can convert the body to a given type

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

Claus Ibsen resolved CAMEL-2522.
--------------------------------

    Resolution: Fixed

trunk: 918985.

> Simple Language - Add bodyAs so you can convert the body to a given type
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-2522
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2522
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.0.0, 2.1.0, 2.2.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.3.0
>
>
> For example to convert to String
> {code}
> <simple>Hello ${bodyAs(String)} how are you?</simple>
> {code}
> To ensure the body is converted to a String, for example if its a byte[] or stream, then you want the data to be converted to String in the expression.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.