本文整理了Java中jodd.util.Wildcard.matchPathOne()
方法的一些代码示例,展示了Wildcard.matchPathOne()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Wildcard.matchPathOne()
方法的具体详情如下:
包路径:jodd.util.Wildcard
类名称:Wildcard
方法名:matchPathOne
[英]Matches path to at least one pattern. Returns index of matched pattern or -1
otherwise.
[中]将路径匹配到至少一个模式。返回匹配模式的索引,否则返回-1
。
代码示例来源:origin: redisson/redisson
if (Wildcard.matchPathOne(entryName, patterns) == -1) {
continue;
代码示例来源:origin: oblac/jodd
if (Wildcard.matchPathOne(entryName, patterns) == -1) {
continue;
代码示例来源:origin: oblac/jodd
result = Wildcard.matchPathOne(uri, matches) != -1;
} else {
for (String match : matches) {
if (Wildcard.matchPathOne(uri, excludes) != -1) {
result = false;
代码示例来源:origin: org.appverse.web.framework.modules.backend.core.api/appverse-web-modules-backend-core-api
private boolean isNoCacheable(HttpServletRequest req){
String uri = req.getRequestURI();
if (uri == null) {
return false;
}
boolean result = false;
if (nocaches != null) {
if (wildcards) {
if (Wildcard.matchPathOne(uri, nocaches) != -1) {
result = true;
}
} else {
for (String nocache : nocaches) {
if (uri.contains(nocache)) {
result = true; // nocaches found
break;
}
}
}
}
return result;
}
代码示例来源:origin: org.appverse.web.framework.modules.backend.core.api/appverse-web-modules-backend-core-api
} else {
if (wildcards) {
result = Wildcard.matchPathOne(uri, matches) != -1;
} else {
for (String match : matches) {
if (Wildcard.matchPathOne(uri, nocaches) != -1) {
result = false;
代码示例来源:origin: org.appverse.web.framework.modules.backend.core.api/appverse-web-modules-backend-core-api
} else {
if (wildcards) {
result = Wildcard.matchPathOne(uri, matches) != -1;
} else {
for (String match : matches) {
if (Wildcard.matchPathOne(uri, excludes) != -1) {
result = false;
代码示例来源:origin: org.jodd/jodd-core
if (Wildcard.matchPathOne(entryName, patterns) == -1) {
continue;
内容来源于网络,如有侵权,请联系作者删除!