] public String getFile() ] ] Gets the file name of this URL. The returned file ] portion will be the same as getPath(), plus the ] concatenation of the value of getQuery(), if any. If ] there is no query portion, this method and getPath() will ] return identical results. ... WTF kind of sense does that make! http://www.thisisatest.com/a/long/path/filename.html?x=1&y=2 Should parse to: Protocol: HTTP Host: www.thisisatest.com Path: /a/long/path/ File: filename.html Query: ?x=1&y=2 Not: Path: /a/long/path/filename.html File: /a/long/path/filename.html?x=1&y=2 WTF is wrong with these people? |