users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Why do we need new UriInfo Methods?

From: Bill Burke <bburke_at_redhat.com>
Date: Mon, 28 Jan 2013 18:14:42 -0500

Where these a copy paste errors in UriInfo?

     public URI resolve(URI baseUri, URI uri);
     public URI relativize(URI from, URI uri);

As they don't make any sense...

I don't understand why we need any of these methods when you can just do:

uriInfo.getBaseURI().resolve(uri);
uriInfo.getBaseURI().relativize(uri);



On 1/28/2013 5:49 PM, Bill Burke wrote:
> relatives and resolve. I don't seem to recall us discussing this.
>
> -1 for these new methods. We don't need to pollute the API with
> esoteric use cases.
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com