Feature request - support for EnumSet as part of QueryParam

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Feature request - support for EnumSet as part of QueryParam

Alex Treppass-2
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.

Reply | Threaded
Open this post in threaded view
|

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

Paul Sandoz
Administrator
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.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]