users@jax-rs-spec.java.net

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

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Wed, 27 Feb 2013 20:41:43 +0100

On Feb 25, 2013, at 3:29 PM, Santiago Pericas-Geertsen <santiago.pericasgeertsen_at_Oracle.com> wrote:

>
> 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.

Do you have a use case? Typically the relative links need to be resolved against request URI. But I may be missing the use case you have in mind.

Marek

> 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
>
>
>