Package org.cloudfoundry.client.lib

Examples of org.cloudfoundry.client.lib.CloudFoundryClient.login()


    try {
      client = new CloudFoundryClient(new CloudCredentials(vcap_email, vcap_passwd), new URL(CC_URL));
    } catch (MalformedURLException e) {
      throw new RuntimeException(e);
    }
    client.login();
    return client;
  }

  public static CloudFoundryClient clientOrgSpace(CloudFoundryClient client) {
    List<CloudSpace> spaces = client.getSpaces();
View Full Code Here


      vcapUrl = new URL(VCAP_TARGET);
    } catch (MalformedURLException e) {
      throw new RuntimeException(e);
    }
    CloudFoundryClient client = new CloudFoundryClient(new CloudCredentials(VCAP_EMAIL, VCAP_PASSWD), vcapUrl);
    client.login();
    String version = client.getCloudInfo().getVersion();
    if (Float.valueOf(version) >= 2.0) {
      client = new CloudFoundryClient(new CloudCredentials(VCAP_EMAIL, VCAP_PASSWD), vcapUrl, getSpace(client));
      client.login();
    }
View Full Code Here

    CloudFoundryClient client = new CloudFoundryClient(new CloudCredentials(VCAP_EMAIL, VCAP_PASSWD), vcapUrl);
    client.login();
    String version = client.getCloudInfo().getVersion();
    if (Float.valueOf(version) >= 2.0) {
      client = new CloudFoundryClient(new CloudCredentials(VCAP_EMAIL, VCAP_PASSWD), vcapUrl, getSpace(client));
      client.login();
    }
    return client;
  }

  private static CloudSpace getSpace(CloudFoundryClient client) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.