本文整理了Java中com.linecorp.centraldogma.internal.Util.validateJsonFilePath()
方法的一些代码示例,展示了Util.validateJsonFilePath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.validateJsonFilePath()
方法的具体详情如下:
包路径:com.linecorp.centraldogma.internal.Util
类名称:Util
方法名:validateJsonFilePath
暂无
代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-shaded
JsonPathQuery(String path, String... jsonPaths) {
requireNonNull(jsonPaths, "jsonPaths");
this.path = validateJsonFilePath(path, "path");
this.jsonPaths = Stream.of(jsonPaths).peek(JsonPathQuery::validateJsonPath).collect(toImmutableList());
}
代码示例来源:origin: line/centraldogma
private static void assertJsonFilePathValidationSuccess(String path) {
validateJsonFilePath(path, "path");
}
代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-shaded
@JsonCreator
JsonPathQuery(@JsonProperty("path") String path,
@JsonProperty("expressions") Iterable<String> jsonPaths) {
requireNonNull(jsonPaths, "jsonPaths");
this.path = validateJsonFilePath(path, "path");
this.jsonPaths = Streams.stream(jsonPaths)
.peek(JsonPathQuery::validateJsonPath)
.collect(toImmutableList());
}
代码示例来源:origin: line/centraldogma
@JsonCreator
JsonPathQuery(@JsonProperty("path") String path,
@JsonProperty("expressions") Iterable<String> jsonPaths) {
this.path = validateJsonFilePath(path, "path");
Streams.stream(requireNonNull(jsonPaths, "jsonPaths"))
.forEach(jsonPath -> Util.validateJsonPath(jsonPath, "jsonPath"));
this.jsonPaths = ImmutableList.copyOf(jsonPaths);
}
代码示例来源:origin: line/centraldogma
CacheableMergeQueryCall(Repository repo, Revision revision, MergeQuery<?> query) {
super(repo);
this.revision = requireNonNull(revision, "revision");
this.query = requireNonNull(query, "query");
// Only JSON files can currently be merged.
query.mergeSources().forEach(path -> validateJsonFilePath(path.path(), "path"));
hashCode = Objects.hash(revision, query) * 31 + System.identityHashCode(repo);
assert !revision.isRelative();
}
代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common
@JsonCreator
JsonPathQuery(@JsonProperty("path") String path,
@JsonProperty("expressions") Iterable<String> jsonPaths) {
this.path = validateJsonFilePath(path, "path");
Streams.stream(requireNonNull(jsonPaths, "jsonPaths"))
.forEach(jsonPath -> Util.validateJsonPath(jsonPath, "jsonPath"));
this.jsonPaths = ImmutableList.copyOf(jsonPaths);
}
代码示例来源:origin: line/centraldogma
DefaultChange(String path, ChangeType type, @Nullable T content) {
this.type = requireNonNull(type, "type");
if (type.contentType() == JsonNode.class) {
validateJsonFilePath(path, "path");
} else {
validateFilePath(path, "path");
}
this.path = path;
this.content = content;
}
代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common
DefaultChange(String path, ChangeType type, @Nullable T content) {
this.type = requireNonNull(type, "type");
if (type.contentType() == JsonNode.class) {
validateJsonFilePath(path, "path");
} else {
validateFilePath(path, "path");
}
this.path = path;
this.content = content;
}
代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-shaded
DefaultChange(String path, ChangeType type, @Nullable T content) {
this.type = requireNonNull(type, "type");
if (type.contentType() == JsonNode.class) {
validateJsonFilePath(path, "path");
} else {
validateFilePath(path, "path");
}
this.path = path;
this.content = content;
}
代码示例来源:origin: com.linecorp.centraldogma/centraldogma-server
CacheableMergeQueryCall(Repository repo, Revision revision, MergeQuery<?> query) {
super(repo);
this.revision = requireNonNull(revision, "revision");
this.query = requireNonNull(query, "query");
// Only JSON files can currently be merged.
query.mergeSources().forEach(path -> validateJsonFilePath(path.path(), "path"));
hashCode = Objects.hash(revision, query) * 31 + System.identityHashCode(repo);
assert !revision.isRelative();
}
代码示例来源:origin: line/centraldogma
private static void assertJsonFilePathValidationFailure(String path) {
assertThatThrownBy(() -> validateJsonFilePath(path, "path"))
.isExactlyInstanceOf(IllegalArgumentException.class);
}
代码示例来源:origin: line/centraldogma
mergeSources.forEach(path -> validateJsonFilePath(path.path(), "path"));
代码示例来源:origin: com.linecorp.centraldogma/centraldogma-server
mergeSources.forEach(path -> validateJsonFilePath(path.path(), "path"));
内容来源于网络,如有侵权,请联系作者删除!