jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: ParamConverterProvider and bean list properties

From: Bill Burke <bburke_at_redhat.com>
Date: Fri, 24 May 2013 10:34:35 -0400

Don't need param converter:

@GET
public get(@QueryParam("name") List<String> names) {}

Should work.

On 5/24/2013 10:29 AM, Sergey Beryozkin wrote:
> Hi
>
> Consider
>
> /bar?name=a&name=b
>
> @GET
> public get(@QueryParam("name") ComplexName name) {}
>
> public class ComplexName {
> List<String> names;
> }
>
> Can we handle such a case with ParamConverters ?
> Probably not, but I wonder how we could've done it...
>
> Sergey
>
>
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com