[jax-rs-spec users] [jsr339-experts] Resetting parameters after LinkBuilder#uri

From: Sergey Beryozkin <>
Date: Mon, 25 Mar 2013 16:34:33 +0300


Should be LinkBuilder#uri documented to clarify that the parameters have
to be reset ?

CXF user reported a different issue but it highlighted that when a link
builder is reused, the new Link will have the parameters inherited from
the previous link, for example,

linkBuilder.uri("/next").rel("next").param("a", "a1");
Link next =;

linkBuilder.uri("/prev").rel("prev").param("b", "b1");
Link prev =;

Here, the prev Link will have the "a" parameter used to build the next
Link inherited, unless the parameters are reset when LinkBuilder#uri
method is called.

Do you agree ?

Thanks, Sergey