camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Commented: (CAMEL-1344) Splitter - attribute to set delimiter for string based splitting
Date Wed, 18 Feb 2009 08:20:59 GMT


Claus Ibsen commented on CAMEL-1344:

Not poosible, we should expose a tokenizer in the Spring DSL then you can do split String
bodies using eg a comma from the Spring DSL also

> Splitter - attribute to set delimiter for string based splitting
> ----------------------------------------------------------------
>                 Key: CAMEL-1344
>                 URL:
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.6.0
>            Reporter: Claus Ibsen
>             Fix For: 2.0.0
> The splitter can split a single String body based using comma (by default)
> As some of the other EIP patterns we have an option to set what delimiter to use for
string based splitting.
> This option should be exposed in the Spring DSL as its here it brings most value.
> In the Java DSL you have full power with the expression builds so you can just body().tokenize(seperator)
> In Spring DSL we dont have this power so supporting an attribute in the <split>
tag would be great.
> In the splitter processor just pass in the separator as a 2nd argument in this code:
> {code}
>        final Iterator iterator = ObjectHelper.createIterator(value);
> {code}

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

View raw message