users@jsr311.java.net

Re: detail for JSR311 method

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Wed, 14 May 2008 09:32:25 -0400

On May 14, 2008, at 3:29 AM, Stephan Koops wrote:
>
> the javadoc for UriBuilder.extension(String) says, that
> > a null value will unset an existing extension including a trailing
> "." if necessary
> Does this mean all extensions or one ? (e.g. if the original uri
> was .../index.en.html")
>
Just above that it says "The extension is everything following the
first "." in the current final path segment of the URI excluding any
matrix parameters that might be present after the extension". So if
the original was index.en.html, the extension is .en.html.

Marc.

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