[jira] [Commented] (CAMEL-10136) Missing Group attribute for Tokenize DSL added to the Body Expression

2016-07-15 Thread Charles Moulliard (JIRA)

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

Charles Moulliard commented on CAMEL-10136:
---

There is an inconsistency as the Java Fluent API ".split().tokenize("\n",3)" 
supports the group option and not this other syntax 
".split(body(String.class).tokenize("\n"))"

> Missing Group attribute for Tokenize DSL added to the Body Expression
> -
>
> Key: CAMEL-10136
> URL: https://issues.apache.org/jira/browse/CAMEL-10136
> Project: Camel
>  Issue Type: Bug
>Reporter: Charles Moulliard
>Assignee: Claus Ibsen
>
> The option group ("",".tokenize("\n", 
> 1000)") doesn't exist when we use the Tokenize DSL after a body expression
> {code}
> .split(body(String.class).tokenize("\n")).streaming()
> {code}
> but only when we create append the .tokenize() DSL to the splitter
> {code}
> .split().tokenize("\n",3).streaming()
> {code}
> Question : Is it the expected behaviour or something missing ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-10136) Missing Group attribute for Tokenize DSL added to the Body Expression

2016-07-15 Thread Claus Ibsen (JIRA)

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

Claus Ibsen commented on CAMEL-10136:
-

Yeah you should use convertBodyTo to convert the body to string before using 
the splitter with tokenize.

> Missing Group attribute for Tokenize DSL added to the Body Expression
> -
>
> Key: CAMEL-10136
> URL: https://issues.apache.org/jira/browse/CAMEL-10136
> Project: Camel
>  Issue Type: Bug
>Reporter: Charles Moulliard
>
> The option group ("",".tokenize("\n", 
> 1000)") doesn't exist when we use the Tokenize DSL after a body expression
> {code}
> .split(body(String.class).tokenize("\n")).streaming()
> {code}
> but only when we create append the .tokenize() DSL to the splitter
> {code}
> .split().tokenize("\n",3).streaming()
> {code}
> Question : Is it the expected behaviour or something missing ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)