camel-dev mailing list archives

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

                 Key: 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:
       final Iterator iterator = ObjectHelper.createIterator(value);

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

View raw message