users@jsr311.java.net

Re: JAX-RS: UriBuilder encoding

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Thu, 24 Jul 2008 19:58:59 +0200

Hi,

I see a problem with build(boolean, Object...). Example:

UriBuilder ub = ...;
ub.replaceQuery("paged={paged}&abc={abc}");
ub.build(true, false);

I would assume that it results in "...?paged=true&abc=false", but it
will result in an error, because there are no enough arguments. Same case:

UriBuilder ub = ...;
ub.replaceQuery("paged={paged}");
ub.build(true);

best regards
  Stephan