java.net.URL.getBasePath() --> time to have it?

Bruno Borges bruno.borges at oracle.com
Fri Dec 21 12:54:36 PST 2012


Hey folks,

To be able to get the basePath of a URL so they can load other stuff 
that came from a relative path, it is usual to see people coding stuff 
like this:

https://gist.github.com/4355670

I don't know if there's something in the Java API that offers this, but 
it would be a great increment to the URL class (and perhaps URI as 
well), to offer this out of the box.

Thoughts?

-- 
Bruno Borges
Principal Product Manager | JavaEE WebLogic GlassFish
Oracle LAD PM Team        | Cloud Application Foundation
+55 11 5187 6514 (Work)   | +55 11 99564 9058 (Mobi)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/net-dev/attachments/20121221/8876b420/attachment.html 


More information about the net-dev mailing list