On Jan 30, 2013, at 7:40 AM, Bill Burke <bburke_at_redhat.com> wrote:
> Why aren't the relativize and resolve methods in UriBuilder?
The main reason is that relativization/resolution are operations that make more sense on fully-built links/URIs (How do you relativize a URI with template variables?). Hence, the new methods buildRelativized() and buildResolved() in Link.Builder. The UriBuilder class is already complex enough to add more building flavors IMO.
UriInfo seemed like the next best location and it can be easily passed as a param to the aformentioned build methods to provide context.
-- Santiago
> On 1/30/2013 5:41 AM, Marek Potociar wrote:
>> Taking back my comment - I'm sorry, I misread the original request. I thought we're talking about resolveTemplate() methods.
>>
>> Marek
>>
>> On Jan 30, 2013, at 11:23 AM, Marek Potociar <marek.potociar_at_oracle.com> wrote:
>>
>>> We need those to align with WebTarget and to support some of its methods. We also discussed this IIRC.
>>>
>>> I'm strongly against removing the methods.
>>>
>>> Marek
>>>
>>> On Jan 28, 2013, at 11:49 PM, Bill Burke <bburke_at_redhat.com> 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
>>>
>>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com