public HttpScheme()

in src/main/java/com/googlesource/gerrit/plugins/download/scheme/HttpScheme.java [40:49]


  public HttpScheme(
      @GerritServerConfig Config cfg,
      @CanonicalWebUrl @Nullable Provider<String> urlProvider,
      Provider<CurrentUser> userProvider,
      DownloadConfig downloadConfig) {
    this.gitHttpUrl = ensureSlash(cfg.getString("gerrit", null, "gitHttpUrl"));
    this.canonicalWebUrl = urlProvider != null ? urlProvider.get() : null;
    this.userProvider = userProvider;
    this.schemeAllowed = downloadConfig.getDownloadSchemes().contains(HTTP);
  }