Package com.openshift.internal.client.httpclient

Examples of com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder


    Assert.notNull(password);
    Assert.notNull(serverUrl);

    try {
      IHttpClient httpClient =
          new UrlConnectionHttpClientBuilder().setCredentials(username, password, authKey, authIV).client();
      return getConnection(clientId, username, password, serverUrl, httpClient);
    } catch (IOException e) {
      throw new OpenShiftException(e, "Failed to establish connection for user ''{0}}''", username);
    }
  }
View Full Code Here


  }

  protected IHttpClient createClient(final String clientId, final String username, final String password,
      final String authKey, final String authIV, final String serverUrl,
      final ISSLCertificateCallback sslCertificateCallback, String exludeSSLCipherRegex) {
      return new UrlConnectionHttpClientBuilder()
            .setCredentials(username, password, authKey, authIV)
            .setSSLCertificateCallback(sslCertificateCallback)
            .setConfigTimeout(getConfiguration().getTimeout())
            .excludeSSLCipher(exludeSSLCipherRegex)
            .client();
View Full Code Here

    Assert.notNull(password);
    Assert.notNull(serverUrl);

    try {
      IHttpClient httpClient =
          new UrlConnectionHttpClientBuilder()
            .setCredentials(username, password, authKey, authIV)
            .setSSLCertificateCallback(sslCertificateCallback)
            .setConfigTimeout(configuration.getTimeout())
            .client();
      return getConnection(clientId, username, password, serverUrl, httpClient);
View Full Code Here

    Assert.notNull(password);
    Assert.notNull(serverUrl);

    try {
      final IHttpClient httpClient =
          new UrlConnectionHttpClientBuilder().setCredentials(login, password, authKey, authIV).client();
      final IRestService service = new RestService(serverUrl, clientId, httpClient);
      return getConnection(service, login, password);
    } catch (IOException e) {
      throw new OpenShiftException(e, "Failed to establish connection for user ''{0}}''", login);
    }
View Full Code Here

    }

    public IHttpClient createHttpClient(final String clientId, final String username, final String password,
        final String authKey, final String authIV, final String token, final String serverUrl,
        final int timeout, final ISSLCertificateCallback sslCertificateCallback, String exludeSSLCipherRegex) {
      return new UrlConnectionHttpClientBuilder()
          .setCredentials(username, password, authKey, authIV, token)
          .setConfigTimeout(timeout)
          .setSSLCertificateCallback(sslCertificateCallback)
          .excludeSSLCipher(exludeSSLCipherRegex)
          .client();
View Full Code Here

  }

  protected IHttpClient createClient(final String clientId, final String username, final String password,
      final String authKey, final String authIV, final String token, final String serverUrl,
      final ISSLCertificateCallback sslCertificateCallback, String exludeSSLCipherRegex) {
    return new UrlConnectionHttpClientBuilder()
        .setCredentials(username, password, authKey, authIV, token)
        .setSSLCertificateCallback(sslCertificateCallback)
        .setConfigTimeout(getConfiguration().getTimeout())
        .excludeSSLCipher(exludeSSLCipherRegex)
        .client();
View Full Code Here

TOP

Related Classes of com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.