users@jersey.java.net

Re: [Jersey] Request parameters in a Jersey Client Request

From: James Strachan <james.strachan_at_gmail.com>
Date: Tue, 27 Jan 2009 11:28:12 +0000

2009/1/27 Paul Sandoz <Paul.Sandoz_at_sun.com>:
> Hi,
>
> I have added your suggestion to:
>
> https://jersey.dev.java.net/issues/show_bug.cgi?id=183
>
> Another solution i was thinking about was to provider a multipart builder.
>
> MultipartBuilder.param("a", "b").build();
>
> but i think the pairs of String is better.

Having tried both I'm with you, I prefer that :)

I've added a patch with tests which reuses the existing queryParams()
name in WebResource & AsyncWebResource
https://jersey.dev.java.net/issues/show_bug.cgi?id=183

so you can do things like:
  resource.path("/").queryParams("a", "foo").queryParams("b",
"bar").get(String.class);

-- 
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/