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?
The
URL.getFile()javadocs say this:They will be the same unless there is a query string, e.g. a
?somename=value&somethingelse=value2in the URL.