static RemoteInfo fromRemoteConfig()

in src/main/java/com/googlesource/gerrit/plugins/webhooks/rest/GetRemote.java [46:56]


  static RemoteInfo fromRemoteConfig(RemoteConfig rc) {
    RemoteInfo info = new RemoteInfo();
    info.url = rc.getUrl();
    info.events = Arrays.asList(rc.getEvents());
    info.connectionTimeout = rc.getConnectionTimeout();
    info.socketTimeout = rc.getSocketTimeout();
    info.maxTries = rc.getMaxTries();
    info.retryInterval = rc.getRetryInterval();
    info.sslVerify = rc.getSslVerify();
    return info;
  }