Splitter - attribute to set delimiter for string based splitting
----------------------------------------------------------------

                 Key: CAMEL-1344
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1344
             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.

Reply via email to