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

Examples of org.eclipse.orion.server.cf.objects.Route.toJSON()


        route.setCFJSON(routeJSON);

        if (domainName == null || (domainName.equals(route.getDomainName()) && (hostName == null || hostName.equals(route.getHost())))) {
          if (!orphaned || route.getCFJSON().getJSONObject(CFProtocolConstants.V2_KEY_ENTITY).getJSONArray(CFProtocolConstants.V2_KEY_APPS).length() == 0) {
            routes.add(route);
            result.append("Routes", route.toJSON());
          }
        }
      }

      return new ServerStatus(Status.OK_STATUS, HttpServletResponse.SC_OK, result);
View Full Code Here


            DeleteRouteCommand deleteRouteCommand = new DeleteRouteCommand(target, route);
            IStatus deleteRouteStatus = deleteRouteCommand.doIt();
            if (!deleteRouteStatus.isOK())
              return deleteRouteStatus;

            deletedRoutesJSON.put(route.toJSON());
          }

          JSONObject result = new JSONObject();
          result.put("Routes", deletedRoutesJSON);
          return new ServerStatus(Status.OK_STATUS, HttpServletResponse.SC_OK, result);
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.