Example usage for org.eclipse.jgit.transport.http.apache HttpClientConnectionFactory HttpClientConnectionFactory

List of usage examples for org.eclipse.jgit.transport.http.apache HttpClientConnectionFactory HttpClientConnectionFactory

Introduction

In this page you can find the example usage for org.eclipse.jgit.transport.http.apache HttpClientConnectionFactory HttpClientConnectionFactory.

Prototype

HttpClientConnectionFactory

Source Link

Usage

From source file:jetbrains.buildServer.buildTriggers.vcs.git.TransportFactoryImpl.java

License:Apache License

public TransportFactoryImpl(@NotNull ServerPluginConfig config, @NotNull VcsRootSshKeyManager sshKeyManager) {
    myConfig = config;/*  w w w .j  a v  a  2 s . co m*/
    myJSchOptions = getJSchCipherOptions();
    mySshKeyManager = sshKeyManager;
    String factoryName = myConfig.getHttpConnectionFactory();
    HttpConnectionFactory f;
    if ("httpClient".equals(factoryName)) {
        f = new SNIHttpClientConnectionFactory();
    } else if ("httpClientNoSNI".equals(factoryName)) {
        f = new HttpClientConnectionFactory();
    } else {
        f = new TeamCityJDKHttpConnectionFactory(myConfig);
    }
    HttpTransport.setConnectionFactory(f);
}