jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: [jax-rs-spec users] LinkBuilder buildRelativized

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Mon, 25 Feb 2013 09:29:02 -0500

On Feb 21, 2013, at 12:37 PM, Sergey Beryozkin <sberyozkin_at_talend.com> wrote:

> Hi,
>
> Does LinkBuilder#buildRelativized need one more parameter, baseURI, for for the link URI be resolved against, before it is actually relativized against the request URI ?
>
>
> Or is the assumption that the supplied URI has already been resolved ?

 This needs to be clarified. On the server, relative URIs should be resolved against the app's base URI. On the client, this is not clear at all (before, with UriInfo, you couldn't use this method in the client at all).

 I'll file a JIRA on this.

-- Santiago