Given protocol, username, password, hostname, port and path what is the easiest way to get a (properly encoded) URL
There are similar questions already asked but:
- java.net.URI seems to not allow to pass the password
- java.net.URLEncoder makes me split the path into components and encode each