In java.net.url there is a getFile() method and a getPath() method.
In my testing, they both return the same result: the full path and file after the domain name trailing slash.
For instance, http://www.google.com/x/y/z.html returns x/y/z.html for both methods.
Could someone elaborate on the Javadocs?