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

Hadrian Zbarcea commented on CAMEL-6984:
----------------------------------------

This request is in my opinion not well defined at all. Many things would be 
handy in an application, much fewer in a framework. Your syntax suggests that 
you are thinking of an enhancement on the simple language. Your request is 
easily achievable with a setHeader("MyMessageSize", 
mySizeComputeAlgorithmExpression) which is data (application) dependent. At 
most, I think we could provide default algorithms/expressions for common types 
(String, byte[], etc), but things get iffy once you include headers and 
properties.

> Add support to obtain message body size w/o a separate processor
> ----------------------------------------------------------------
>
>                 Key: CAMEL-6984
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6984
>             Project: Camel
>          Issue Type: Wish
>          Components: camel-core
>    Affects Versions: 2.12.1
>            Reporter: Matt Pavlovich
>            Priority: Minor
>
> It would be really handy to have something like ${body}.size in the 
> framework, so you don't have to write a processor just to obtain payload size.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to