users@jersey.java.net

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

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Thu, 25 Sep 2008 10:52:59 -0400

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 ?

Marc.

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