APISonar


com.intellij.cvsSupport2.config.ProxySettings.HTTP

> com > intellij > cvsSupport2 > config > ProxySettings > HTTP
com APIs intellij APIs cvsSupport2 APIs config APIs ProxySettings APIs HTTP APIs

Example 1
public static ProxyData createAndRegister(final ConnectionSettings connectionSettings) {
    ProxyData result = null;
    if (! connectionSettings.isUseProxy()) return null;
    final int type = connectionSettings.getProxyType();
    if ((ProxySettings.SOCKS4 == type) || (ProxySettings.SOCKS5 == type)) {
      result = new SocksProxyData(connectionSettings);
      SocksAuthenticatorManager.getInstance().register(connectionSettings);
    } else if (ProxySettings.HTTP == type) {
      /*String proxyHost, int proxyPort, String proxyUser, String proxyPass*/
      result = new HTTPProxyData(connectionSettings.getProxyHostName(), connectionSettings.getProxyPort(),
                                 connectionSettings.getProxyLogin(), connectionSettings.getProxyPassword());
    }
    return result;
  }