> 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. ;-)