Re: JSR311: _at_*Param and List<?>

From: Stephan Koops <>
Date: Mon, 17 Mar 2008 23:16:04 +0100


@Marc: +1.
I think it is useful to allow also Set and SortedSet. Sometimes the
order is irrelevant and/or dublicates could or should be ignored for the
app. I propose also to allow Collection.
What, if no parameter "bar" could be read from the query and no
@DefaultValue is given? Empty collection or null? I think an empty
collection is, but this should be defined.
Is the collection allowed to be modifiable? I think, it should be


Stefan Tilkov schrieb:
> On Mar 17, 2008, at 6:55 PM, Marc Hadley wrote:
>> I propose to change the parameter types that can be annotated with
>> @*Param to include List. E.g. you could do:
>> @GET
>> Foo getFoo(@QueryParam("bar") List<String> bars) {...}
> My apologies if this is a dumb question, but what would the URI look
> like? Multiple bar=... query params?
> Stefan