users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: HEADS-UP: Encoding values of UriBuilder template parameters

From: Markus KARG <markus_at_headcrashing.eu>
Date: Wed, 21 Dec 2011 18:31:46 +0100

> One other option that comes to my mind is to add a new build(...)
> method that would take a flag indicating if the slashes in values
> should encoded for all templates in path component or not. Something
> like this:
>
> public abstract URI build(Object... values, boolean encodeSlashInPath)
> throws IllegalArgumentException, UriBuilderException
>
> The default behavior of build(Object... values) would correspond to
> build(values, false). The behavior you request could be achieved by
> build(values, true).
>
> If you see another solution that would be BW-compatible, and still not
> too complicated let me know.

Looks good. :-)

I would love to turn back time so we could make ",true" the default. ;-)