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

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

From: Bill Burke <bburke_at_redhat.com>
Date: Mon, 22 Oct 2012 09:37:57 -0400

IMO, treat these like other headers, where you have a "simple" method
and a complex way, i.e.

Link getSingleLink(String relation) and

Collection<Link> getLinks(relation)
or
MultivaluedMap<String, Link> getLinks();

On 10/21/2012 4:13 AM, Jan Algermissen wrote:
>
> 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
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com