users@jersey.java.net

Re: [Jersey] No queryParam on (Partial)RequestBuilder

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 10 Jul 2009 15:54:00 +0200

On Jul 10, 2009, at 11:48 AM, Martin Probst wrote:

> Hi,
>
> is there a reason why there is no queryParam() method on
> (Partial)RequestBuilder, even though there is one on WebResource?

Yes, query parameters are part of the URI, those methods create a new
WebResource, from which request can be built.

Paul.

> This
> makes the calls a bit order dependent - if you call
> WebResource.header(...) first, the returned builder will not allow a
> .queryParam call.
>
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>