URL encode username in http and ssh schemes

Also add a test to verify that username was correctly encoded. This
change depends on change in gerrit core that marked DownloadConfig ctor
public.

Depends-On: https://gerrit-review.googlesource.com/c/gerrit/+/328279
Change-Id: Id7d24530607f6d05c5034bac1a91b3270c4cb698
4 files changed
tree: 76656fd0d191fee224c5f3bb6f5b642430166683
  1. src/
  2. .gitignore
  3. BUILD
  4. LICENSE
  5. README.md
README.md

Gerrit download-commands plugin

All documentation may be found under src/main/resources/Documentation/.