camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-1363) Sort DSL - To be able to sort e.g. the body use some comparator
Date Fri, 20 Feb 2009 13:10:00 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-1363.
--------------------------------

    Resolution: Fixed

Committed revision 746225.

> Sort DSL - To be able to sort e.g. the body use some comparator
> ---------------------------------------------------------------
>
>                 Key: CAMEL-1363
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1363
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> Today there is no DSL support to be able to sort the body of a given message.
> Lets imagine you read some .txt file with lines of text, and you want that sorted,
> Today you need to do that manually.
> {code}
> from("file://inbox").sort(body().tokenize("\n")).to("bean:processLines");
> {code}
> By deault it will sort the body and use a default comparator that sorts by to string
representation.
> The body will be converted into a List to allow the JDK sorter to be used.

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


Mime
View raw message