Package com.cloudcontrolled.api.response

Examples of com.cloudcontrolled.api.response.ApplicationResponse


  private String retrieveRemoteRepositoryLocation() throws MojoFailureException, MojoExecutionException {
    CloudControlClient client = CloudControlSupport.createCloudControlClient();
    ApplicationRequest applicationRequest = CloudControlSupport.createApplicationRequest(application);

    ApplicationResponse applicationResponse = null;
    try {
      applicationResponse = client.send(applicationRequest);

      if (applicationResponse.isError()) {
        throw new MojoFailureException(applicationResponse.getContent());
      }
    } catch (CloudControlClientException ccce) {
      throw new MojoExecutionException(ccce.getClass().getSimpleName(), ccce);
    }

    String remoteRepository = "git+";
    remoteRepository += applicationResponse.getApplication().getRepository();

    return remoteRepository;
  }
View Full Code Here

TOP

Related Classes of com.cloudcontrolled.api.response.ApplicationResponse

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.