users@jax-rs-spec.java.net

[jax-rs-spec users] Adding links using ContainerResponseFilter

From: Jan Kronquist <jan.kronquist_at_jayway.com>
Date: Tue, 19 Feb 2013 13:17:31 +0100

Hi

I am experimenting using a ContainerResponseFilter to add additional links
using reflection. However, in Jersey2.0-m12-1 it is not possible to modify
the links since the set is unmodifyable. The javadocs of
ContainerResponseContext.getLinks does not indicate that the list is not
modifyable. Is this the intended behavior?

In that case what is the purpose of
the ContainerResponseContext.getLinkBuilder method?

Is it possible to add links using some other mechanism?

/Jan