users@jsr311.java.net

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

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Fri, 28 Mar 2008 14:46:40 -0400

On Mar 28, 2008, at 1:21 PM, Stephan Koops wrote:
>
> 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.
>
All extensions. In the text by extension I mean everything after the
first "." in the final path segment. I'll see if I can clarify that in
the javadoc.

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.