[jax-rs-spec users] [jsr339-experts] can we have a LinkHeaders object?

From: Bill Burke <>
Date: Wed, 04 Jul 2012 13:13:46 -0400

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

Bill Burke
JBoss, a division of Red Hat