If I correctly understand
http://tools.ietf.org/html/rfc5988 then it is
valid to have two different links with the same rel (and it makes sense,
since a relationship like 'getParents()' obviously should return TWO
people). So you are right, getLinks mut return a Collection<Link> instead of
a single <Link>.
> -----Original Message-----
> From: Jan Algermissen [mailto:jan.algermissen_at_nordsc.com]
> Sent: Sonntag, 21. Oktober 2012 00:30
> To: jsr339-experts_at_jax-rs-spec.java.net
> Subject: [jsr339-experts] There could be more than one Link header for
> a given rel
>
> Hi,
>
> AFAIK there can be more than one Link header value for any given rel.
> E.g. one could have
>
> Link: </a>; rel="describedBy"
> Link: </b>; rel="describedBy"
>
> given that
>
> Link getLink(String relation)
>
> Should (unfortunately) be something like
>
> Collection<Link> getLinks(String relation)
>
> Agreed?
>
> I'll check back on apps-discuss.
>
> Jan