public AnonymousHttpScheme()

in src/main/java/com/googlesource/gerrit/plugins/download/scheme/AnonymousHttpScheme.java [35:42]


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