You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by liugang <cl...@gmail.com> on 2013/01/09 08:00:06 UTC
RecipientList with delimiter argument
Hi All:
When I plan to use recipientList component, I can only select one from:
Method 1:
public RecipientListDefinition<Type>
recipientList(Expression recipients) {...}
Method 2:
public RecipientListDefinition<Type>
recipientList(Expression recipients, String delimiter) {...}
Method 3:
public
ExpressionClause<RecipientListDefinition<Type>> recipientList() {...}
Method 3 has more expression can be used than Method 1 and Method 2 , but
unfortunately, we can't specify the delimiter on this case.
So I'd like to know, how I can have a method which works like:
Method 4:
public
ExpressionClause<RecipientListDefinition<Type>> recipientList(String
delimiter) {...}
Thanks a lot
GangLiu
RE: RecipientList with delimiter argument
Posted by liugang <cl...@gmail.com>.
OK, thanks.
GangLiu
-----Original Message-----
From: Claus Ibsen [mailto:claus.ibsen@gmail.com]
Sent: Wednesday, January 09, 2013 4:23 PM
To: users@camel.apache.org
Subject: Re: RecipientList with delimiter argument
Hi
Yeah for method 3 we should have a method so you can set that.
I have logged a ticket
https://issues.apache.org/jira/browse/CAMEL-5945
On Wed, Jan 9, 2013 at 8:00 AM, liugang <cl...@gmail.com> wrote:
> Hi All:
>
>
>
> When I plan to use recipientList component, I can only select one from:
>
>
>
> Method 1:
>
> public RecipientListDefinition<Type>
> recipientList(Expression recipients) {...}
>
> Method 2:
>
> public RecipientListDefinition<Type>
> recipientList(Expression recipients, String delimiter) {...}
>
> Method 3:
>
> public
> ExpressionClause<RecipientListDefinition<Type>> recipientList() {...}
>
>
>
> Method 3 has more expression can be used than Method 1 and Method 2 , but
> unfortunately, we can't specify the delimiter on this case.
>
>
>
> So I'd like to know, how I can have a method which works like:
>
>
>
> Method 4:
>
> public
> ExpressionClause<RecipientListDefinition<Type>> recipientList(String
> delimiter) {...}
>
>
>
> Thanks a lot
>
>
>
> GangLiu
>
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: RecipientList with delimiter argument
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Yeah for method 3 we should have a method so you can set that.
I have logged a ticket
https://issues.apache.org/jira/browse/CAMEL-5945
On Wed, Jan 9, 2013 at 8:00 AM, liugang <cl...@gmail.com> wrote:
> Hi All:
>
>
>
> When I plan to use recipientList component, I can only select one from:
>
>
>
> Method 1:
>
> public RecipientListDefinition<Type>
> recipientList(Expression recipients) {...}
>
> Method 2:
>
> public RecipientListDefinition<Type>
> recipientList(Expression recipients, String delimiter) {...}
>
> Method 3:
>
> public
> ExpressionClause<RecipientListDefinition<Type>> recipientList() {...}
>
>
>
> Method 3 has more expression can be used than Method 1 and Method 2 , but
> unfortunately, we can't specify the delimiter on this case.
>
>
>
> So I'd like to know, how I can have a method which works like:
>
>
>
> Method 4:
>
> public
> ExpressionClause<RecipientListDefinition<Type>> recipientList(String
> delimiter) {...}
>
>
>
> Thanks a lot
>
>
>
> GangLiu
>
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen