users@jsr311.java.net

Re: svn commit: r287 - trunk/src/jsr311-api/src/javax/ws/rs/core

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Fri, 28 Mar 2008 18:21:33 +0100

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