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

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

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Mon, 22 Oct 2012 14:44:47 +0200

On Oct 22, 2012, at 1:54 PM, Sergey Beryozkin <sberyozkin_at_talend.com> wrote:

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

Yes.

Which part of resolveTemplate() javadoc you find confusing? Can you suggest the wording that would make the javadoc more clear?

Thanks,
Marek

>
> Thanks, Sergey
>
>
>
>