Package org.cloudfoundry.ide.eclipse.server.core.internal

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.CloudApplicationURL


      IProgressMonitor monitor) throws CoreException {
    String subdomain = getStringValue(application, SUB_DOMAIN_PROP);
    String domain = getStringValue(application, DOMAIN_PROP);

    if (domain != null || subdomain != null) {
      CloudApplicationURL cloudURL = new CloudApplicationURL(subdomain, domain);

      try {
        cloudURL = ApplicationUrlLookupService.update(cloudServer, monitor).validateCloudApplicationUrl(
            cloudURL);
      }
      catch (CoreException e) {
        // Log this as at this stage, but don't let it prevent
        // further
        // parsing
        CloudFoundryPlugin.logError(e);
      }

      List<String> urls = Arrays.asList(cloudURL.getUrl());
      workingCopy.setUris(urls);
    }
  }
View Full Code Here


    if (urls != null && !urls.isEmpty()) {
      // Persist only the first URL
      String url = urls.get(0);

      ApplicationUrlLookupService lookup = ApplicationUrlLookupService.getCurrentLookup(cloudServer);
      CloudApplicationURL cloudUrl = lookup.getCloudApplicationURL(url);
      String subdomain = cloudUrl.getSubdomain();
      String domain = cloudUrl.getDomain();

      if (subdomain != null) {
        application.put(SUB_DOMAIN_PROP, subdomain);
      }
View Full Code Here

    ApplicationDeploymentInfo info = super.getDefaultApplicationDeploymentInfo(appModule, cloudServer, monitor);

    // Set a default URL for the application.
    if ((info.getUris() == null || info.getUris().isEmpty()) && info.getDeploymentName() != null) {

      CloudApplicationURL url = ApplicationUrlLookupService.update(cloudServer, monitor)
          .getDefaultApplicationURL(info.getDeploymentName());
      info.setUris(Arrays.asList(url.getUrl()));
    }
    return info;
  }
View Full Code Here

  protected void resolveUrlFromSubdomain(Control source) {
    String subdomain = subDomainText.getText();
    String domain = getCurrentDomain();

    CloudApplicationURL suggestedUrl = new CloudApplicationURL(subdomain, domain);

    validate(suggestedUrl, source);
  }
View Full Code Here

      // a different app name than the default app name from the project
      // name.

      ApplicationUrlLookupService urlLookup = ApplicationUrlLookupService.update(server, monitor);

      CloudApplicationURL url = urlLookup.getDefaultApplicationURL(copy.getDeploymentName());
      if (url != null) {
        copy.setUris(Arrays.asList(url.getUrl()));
      }
    }

    copy.save();
View Full Code Here

TOP

Related Classes of org.cloudfoundry.ide.eclipse.server.core.internal.CloudApplicationURL

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.