On Feb 27, 2013, at 2:41 PM, Marek Potociar <marek.potociar_at_oracle.com> wrote:
>
> 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.
Yes, the use case here are those relative URIs returned by UriBuilder.fromResource(), for example. Before relativizing those (against the request URI as you suggest), we need to resolved them against the app's base URI.
-- Santiago
>> 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
>>
>>
>>
>