[jax-rs-spec users] [jsr339-experts] Rules for resolving relative Links

From: Sergey Beryozkin <>
Date: Wed, 11 Sep 2013 14:15:24 +0100

Hi Santiago, All,

What are the rules of resolving Links with relative URIs in
Response.getLinks() ?

The documentation only mentions that the resolution has to take place.

I'm asking because I'm seeing unexpected test failures.

For example, request uri is


Link URI is: "resource/consumesjson"

I expect that a resolved URI will produce:


(this is correct per the regular URI resolution process)

but the test expects that


will be produced.

Before challenging it, I wonder if the expectation is that a relative
URI will always be added to the request URI host & port only in
Response.getLinks() ?

Thanks, Sergey