Hi Marc,
new javadoc of UriBuilder.extension(String):
> * Set the extension of the current final path segment to the supplied value
> * appending an initial "." if necessary.
> * @param extension the extension,
> * a null value will unset an existing extension including a trailing "." if necessary
>
all extensions or one? I think all is useful, because ".xml.en" could be
added.
On the other hand: If the resource name is "abc.def.ghi.html.en" - how
should the UriBuilder now how many extensions to remove?
IMO we should ignore the last case, because this URI should be
"abc/def/ghi.html.en" (IMO). A way to handle this is, that someone who
build URIs like this could not use this method.
Stephan