On 7/3/12 11:00 AM, Santiago Pericas-Geertsen wrote:
>
> On Jul 2, 2012, at 5:56 PM, Bill Burke wrote:
>
>>
>>
>> On 7/2/12 5:52 PM, Bill Burke wrote:
>>>
>>>
>>> On 7/2/12 5:47 PM, Julian Reschke wrote:
>>>> On 2012-07-02 23:37, Bill Burke wrote:
>>>>> One thing I noticed about JAX-RS 2.0 Link class is that it can't support
>>>>> templates. I know the original link header draft had a Link-Template
>>>>> header, but I couldn't find any information beyond the original draft.
>>>>> Anybody know what the deal is with templates?
>>>>
>>>> Template support was not included. According to the change history (see
>>>> <http://greenbytes.de/tech/webdav/draft-nottingham-http-link-header-10.html#rfc.section.E>)
>>>>
>>>> it was removed early; probably because URI templates were not ready; and
>>>> it introduced complexity that wasn't really needed.
>>>>
>>>
>>> This is an issue for Resteasy as our old link header support allowed
>>> templates. I know a lot of our users use the templating feature of our
>>> Link header parser/object representation.
>>>
>>
>> An additional side-effect is that Link.fromResourceMethod() isn't going to be very useful either as many resource classes and/or methods will be templated.
>
> Did you see Link.Builder.build(Object... values)? Isn't that what you're asking for?
>
Yup...ignore me please :)
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com