Package org.eclipse.orion.server.cf.objects

Examples of org.eclipse.orion.server.cf.objects.Domain


      JSONObject result = new JSONObject();
      domains = new ArrayList<Domain>();
      JSONArray resources = domainsJSON.getJSONArray(CFProtocolConstants.V2_KEY_RESOURCES);
      for (int k = 0; k < resources.length(); ++k) {
        JSONObject domainJSON = resources.getJSONObject(k);
        Domain domain = new Domain();
        domain.setCFJSON(domainJSON);
        if (domainName == null || domainName.equals(domain.getDomainName())) {
          domains.add(domain);
          result.append("Domains", domain.toJSON());
        }
      }

      if (domains.isEmpty())
        return new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_NOT_FOUND, "Domain can not be found", null);
View Full Code Here

TOP

Related Classes of org.eclipse.orion.server.cf.objects.Domain

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.