public Response apply()

in src/main/java/com/googlesource/gerrit/plugins/zuulstatus/GetConfig.java [40:48]


  public Response<ConfigInfo> apply(ProjectResource project) throws NoSuchProjectException {
    PluginConfig cfg = config.getFromProjectConfigWithInheritance(
        project.getNameKey(), pluginName);

    ConfigInfo info = new ConfigInfo();
    info.zuulUrl = cfg.getString("url", null);
    info.zuulTenant = cfg.getString("tenant", null);
    return Response.ok(info);
  }