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

[jsr339-experts] Re: can we have a LinkHeaders object?

From: Julian Reschke <julian.reschke_at_gmx.de>
Date: Wed, 04 Jul 2012 19:17:00 +0200

On 2012-07-04 19:13, Bill Burke wrote:
> Basically encapsulate the common methods in Response and
> ContainerResponseContext into one interface, class, or abstract class:
>
> public class LinkHeaders
> {
> public Set<Link> getLinks()
> public boolean hasLink(String relation)
> public Link getLink(String relation)

Shouldn't the above return a Set of Links?

> public Link.Builder getLinkBuilder(String relation)
>
> public toString();
> public static void valueOf(String val)
> }
>
> Modify Response and ContainerResponse to remove the above methods and
> just have a getLinkHeaders() method. Finally, make LinkHeaders
> injectable via @Context (which is the main reason I want the separate
> class).
>
> http://java.net/jira/browse/JAX_RS_SPEC-225
>