Examples of endArray()


Examples of org.davinci.server.util.JSONWriter.endArray()

                        jsonWriter.addField("libVersion", r.getLibraryVersion());
                    }

                    jsonWriter.endObject();
                }
                jsonWriter.endArray();
                jsonWriter.endObject();

            }
            jsonWriter.endArray();
            jsonWriter.endObject();
View Full Code Here

Examples of org.davinci.server.util.JSONWriter.endArray()

                }
                jsonWriter.endArray();
                jsonWriter.endObject();

            }
            jsonWriter.endArray();
            jsonWriter.endObject();
        }
        return jsonWriter.getJSON();
    }
View Full Code Here

Examples of org.davinci.server.util.JSONWriter.endArray()

          .addField("cssOptimise", "comments");
        jsonWriter.addFieldName("packages").startArray();
        jsonWriter.startObject().addField("name", "dojo").addField("version","1.8.0").endObject();
//TODO: add supplemental packages like maqetta.*
//        jsonWriter.startObject().addField("name", supplemental).addField("version","1.0.0").endObject();
        jsonWriter.endArray();
        jsonWriter.addFieldName("layers").startArray();
        jsonWriter.startObject();
        jsonWriter.addField("name", "dojo.js");
        jsonWriter.addFieldName("modules");
        jsonWriter.startArray();
View Full Code Here

Examples of org.davinci.server.util.JSONWriter.endArray()

            jsonWriter.startObject();
          jsonWriter.addField("name", requiredDojoModules.get(i));
          jsonWriter.addField("package", "dojo");
            jsonWriter.endObject();
        }
        jsonWriter.endArray();
        jsonWriter.endObject();
        jsonWriter.endArray();
//        jsonWriter.endObject();
        String content = jsonWriter.getJSON();
View Full Code Here

Examples of org.davinci.server.util.JSONWriter.endArray()

          jsonWriter.addField("package", "dojo");
            jsonWriter.endObject();
        }
        jsonWriter.endArray();
        jsonWriter.endObject();
        jsonWriter.endArray();
//        jsonWriter.endObject();
        String content = jsonWriter.getJSON();

        HttpClient client = new HttpClient();
        PostMethod method = new PostMethod(buildBase + "/api/build");
View Full Code Here

Examples of org.davinci.server.util.JSONWriter.endArray()

            String required = libs[i].getRequired();
            jsonWriter.addField("required", required!=null || (Boolean.parseBoolean(required)?true:false));
            jsonWriter.addField("hasSource", libs[i].getSourcePath()!=null);
            jsonWriter.endObject();
        }
        jsonWriter.endArray().endObject();
        this.responseString = jsonWriter.getJSON();
        resp.setContentType("application/json;charset=UTF-8");
    }

}
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentBuilder.endArray()

                builder.startArray("category");
                for (String s : page.getCategories()) {
                    builder.value(s);
                }
                builder.endArray();

                builder.startArray("link");
                for (String s : page.getLinks()) {
                    builder.value(s);
                }
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentBuilder.endArray()

                builder.startArray("link");
                for (String s : page.getLinks()) {
                    builder.value(s);
                }
                builder.endArray();

                builder.endObject();

                if (closed) {
                    logger.warn("river was closing while processing wikipedia page [{}]/[{}]. Operation skipped.",
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentBuilder.endArray()

      if (currProjectIndexingInfo != null) {
        builder.startArray("current_indexing");
        for (SpaceIndexingInfo pi : currProjectIndexingInfo) {
          pi.buildDocument(builder, true, false);
        }
        builder.endArray();
      }
    }
    List<String> pkeys = getAllIndexedSpaceKeys();
    if (pkeys != null) {
      builder.startArray("indexed_spaces");
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentBuilder.endArray()

          builder.field("last_indexing");
          lastIndexing.buildDocument(builder, false, true);
        }
        builder.endObject();
      }
      builder.endArray();
    }
    builder.endObject();
    return builder.string();
  }
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.