users@jersey.java.net

Re: GET parameters as List or Map?

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Fri, 29 Feb 2008 11:40:52 -0500

On Feb 29, 2008, at 11:31 AM, Gabor Szokoli wrote:
>
> I have a GET method which takes a bunch of optional search parameters.
> I then put these in a map, keyed by the @QueryParam.
> A cool servlet framework we use (wicket) has a construct called
> PageParameters. Is there anything similar in Jersey?
>
You can use UriInfo.getQueryParameters instead of lots of @QueryParam
annotated parameters.

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.