users@jersey.java.net

Re: [Jersey] Feature request - support for EnumSet as part of QueryParam

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 28 Jun 2010 18:33:28 +0200

Hi Alex,

It should be possible to support this using StringReaderProvider:

   https://jersey.dev.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/spi/StringReaderProvider.html

But we can such an implementation to Jersey. Can you log an issue?

Paul.

On Jun 28, 2010, at 6:05 PM, Alex Treppass wrote:

> Currently, the system supports:
>
> enum Param{ONE,TWO,THREE}
>
> @GET
> Public Response method(@QueryParam(“param”) List<Param> params)
>
> But not:
>
> enum Param{ONE,TWO,THREE}
>
> @GET
> Public Response method(@QueryParam(“param”) EnumSet<Param> params)
>
> EnumSet has better methods for manipulating enums.
>