Package org.eclipse.orion.server.git.objects

Examples of org.eclipse.orion.server.git.objects.Remote.toJSON()


      Git git = new Git(db);
      Set<String> configNames = db.getConfig().getSubsections(ConfigConstants.CONFIG_REMOTE_SECTION);
      for (String configN : configNames) {
        if (configN.equals(configName)) {
          Remote remote = new Remote(cloneLocation, db, configN);
          JSONObject result = remote.toJSON();
          if (!result.has(ProtocolConstants.KEY_CHILDREN)) {
            return new ServerStatus(Status.OK_STATUS, HttpServletResponse.SC_OK, result);
          }
          JSONArray children = result.getJSONArray(ProtocolConstants.KEY_CHILDREN);
          JSONArray filteredChildren = new JSONArray();
View Full Code Here


        Set<String> configNames = db.getConfig().getSubsections(ConfigConstants.CONFIG_REMOTE_SECTION);
        JSONObject result = new JSONObject();
        JSONArray children = new JSONArray();
        for (String configName : configNames) {
          Remote remote = new Remote(cloneLocation, db, configName);
          children.put(remote.toJSON(false));
        }
        result.put(ProtocolConstants.KEY_CHILDREN, children);
        result.put(ProtocolConstants.KEY_TYPE, Remote.TYPE);
        OrionServlet.writeJSONResponse(request, response, result, JsonURIUnqualificationStrategy.ALL_NO_GIT);
        return true;
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.