users@jersey.java.net

Re: [Jersey] Client API: combining URI building with WebResource

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 25 Sep 2008 16:55:51 +0200

On Sep 25, 2008, at 4:52 PM, Marc Hadley wrote:

> On Sep 25, 2008, at 8:51 AM, Paul Sandoz wrote:
>>
>> I think i have an idea how to combine URI building with
>> WebResource. It would go something like this:
>>
>> WebResource r = ...
>> r.uri().path(...).queryParam(..., ...).resource().get(...);
>>
>> Basically i can duplicate most of the methods of UriBuilder so that
>> the build method returns a WebResource instead of a URI.
>>
> Is the resource() method above the equivalent of build() ? So you'd
> get a new instance of WebResource to do the actual get() with ?
>

Yes.

Paul.