Java URI.resolve
- by twip
I'm trying to resolve two URIs, but it's not as straightforward as I'd like it to be.
URI a = new URI("http://www.foo.com");
URI b = new URI("bar.html");
The trouble is that a.resolve(b).toString() is now "http://www.foo.combar.html". How can I get away with that?