org.vertx.java.core.json.JsonObject.copy()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中org.vertx.java.core.json.JsonObject.copy()方法的一些代码示例,展示了JsonObject.copy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonObject.copy()方法的具体详情如下:
包路径:org.vertx.java.core.json.JsonObject
类名称:JsonObject
方法名:copy

JsonObject.copy介绍

暂无

代码示例

代码示例来源:origin: org.vert-x/vertx-core

private JsonObjectMessage(JsonObjectMessage other) {
 super(other.send, other.address, other.body == null ? null : other.body.copy());
 this.replyAddress = other.replyAddress;
 this.bus = other.bus;
 this.sender = other.sender;
}

代码示例来源:origin: org.vert-x/vertx-platform

config == null ? new JsonObject() : config.copy(), urls, modDir, parentDeploymentName,
  autoRedeploy);
deployments.put(deploymentName, deployment);

代码示例来源:origin: io.vertx/vertx-platform

config == null ? new JsonObject() : config.copy(), urls, includedURLs, modDir, parentDeploymentName,
  mr, autoRedeploy, ha, loadFromModuleFirst);
mr.incRef();

代码示例来源:origin: org.vert-x/vertx-core

private JsonObject setDefaults(JsonObject config) {
 config = config.copy();
 //Set the defaults
 if (config.getNumber("session_timeout") == null) {
  config.putNumber("session_timeout", 5 * 1000); // 5 seconds default
 }
 if (config.getBoolean("insert_JSESSIONID") == null) {
  config.putBoolean("insert_JSESSIONID", true);
 }
 if (config.getNumber("heartbeat_period") == null) {
  config.putNumber("heartbeat_period", 5l * 1000);
 }
 if (config.getNumber("max_bytes_streaming") == null) {
  config.putNumber("max_bytes_streaming", 128 * 1024);
 }
 if (config.getString("prefix") == null) {
  config.putString("prefix", "/");
 }
 if (config.getString("library_url") == null) {
  config.putString("library_url", "http://cdn.sockjs.org/sockjs-0.2.1.min.js");
 }
 if (config.getArray("disabled_transports") == null) {
  config.putArray("disabled_transports", new JsonArray());
 }
 return config;
}

相关文章