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

[jsr339-experts] More confusion about UriBuilder.build and UriBuilder.resolveTemplate

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Mon, 22 Oct 2012 12:54:47 +0100

I'm confused about how the combination of UriBuilder.resolveTemplate(0
and UriBuilder.build() is supposed to work correctly together.

Consider:

UriBuilder ub = UriBuilder.fromPath("http://localhost/{a}/{b}?bar={bar}");

ub.resolveTemplate("a", "1");
ub.build("2", "3");

Do we end up with

"http://localhost/1/2?bar=3}"

in the end ?

Thanks, Sergey