jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: There could be more than one Link header for a given rel

From: Jan Algermissen <jan.algermissen_at_nordsc.com>
Date: Sun, 21 Oct 2012 10:13:27 +0200

On Oct 21, 2012, at 12:29 AM, Jan Algermissen wrote:

> 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.

Seems correct - there can be more than one link for any given rel:

http://www.ietf.org/mail-archive/web/apps-discuss/current/msg07612.html

Issue opened here:
http://java.net/jira/browse/JAX_RS_SPEC-276

Jan


>
> Jan