Hi
>>>
>>> More comments soon, just back form holidays - particularly keen to see how the idea of Active links has been implemented -
>>
>> There's nothing fancy to it - I just renamed client.Link to client.Target to distinguish it as an active link. Then I
>> introduced a Link POJO header as well as client.target(Link) method. This is still a fresh area however, so there should
>> be a room for suggestions and improvements.
>>
>> S.B: I think I'm +1 on that - it does look OK to me too. I think it makes things cleaner.
>> I'd only comment that a Link POJO should be doc-ed to say that it can capture
>> links not only from headers but from attributes, etc.
>
> I haven't thought about using Link in place of structural links, but it should certainly be possible.
Agreed. We can also have a Link bean have properties such as
getBaseURI() - returning null for absolute ones or base URIs for
relative Links when available. Another property to add is getRelation(),
in your example that would be 'next', etc, all that will make Link
richer than a plain URI...
Btw. in case you
> have not seen it, there is a simple example of how the links can be used on the client-side:
>
> http://java.net/projects/jax-rs-spec/sources/git/content/src/examples/src/main/java/jaxrs/examples/client/links/LinkUsageExample.java
>
Looks nice
Sergey
> Cheers,
> Marek
>
--
Sergey Beryozkin
http://sberyozkin.blogspot.com
Talend - http://www.talend.com