You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by lb <lb...@gmail.com> on 2016/02/11 13:55:43 UTC

UriParam multi value

Hi,

I would like to know if there is way to have a multi value UriParam
that accepts a comma delimited list of elements like:

- definition:

    @UriParam
    private List<MyOption> options;


- add thing to registry:

    registry.bind("option1", new MyOption("1"));
    registry.bind("option2", new MyOption("2"));
    registry.bind("option3", new MyOption("3"));


- configure routes:

    from("...")
        .to("myEndpoint:foo?options=#option1,#option2)
    from("...")
        .to("myEndpoint:bar?options=#option1,#option3")



Thx,
Luca