users@jsr311.java.net

UriBuilder.path("/")

From: Sergey Beryozkin <sberyozk_at_progress.com>
Date: Tue, 24 Feb 2009 14:41:20 -0000

Hi

I'd just like to clarify what should happen in cases like

UriBuilder.fromUri("http://foo/").build()
or
uriBuilder.path("/").build()

The reason I ask is that if a UriBuilder implementations depends internally on PathSegment(s) then the last '/' is lost given that a PathSegment.getPath() for "/" returns an empty value.

Is it correct to assume that irrespectively of UriBuilder implementation details a trailing '/', if any, must be preserved ?
I reckon it has to be preserved

Thanks, Sergey