本文整理了Java中org.vertx.java.core.json.JsonObject.copy()
方法的一些代码示例,展示了JsonObject.copy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonObject.copy()
方法的具体详情如下:
包路径:org.vertx.java.core.json.JsonObject
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!