public class PathMatcher extends Object
RoutingDefault,
Action| Constructor and Description |
|---|
PathMatcher(String expr,
boolean caseSensitive) |
| Modifier and Type | Method and Description |
|---|---|
int |
depth()
获取路径常量深度
|
protected static String |
exprCompile(String expr,
boolean fixedStart)
将路径表达式编译为正则表达式
|
static PathMatcher |
get(String expr)
获取路径匹配器
|
static PathMatcher |
get(String expr,
boolean addStarts)
获取路径匹配器
|
static boolean |
isCaseSensitive()
是否区分大小写(默认区分)
|
Matcher |
matcher(String uri)
路径匹配变量
|
boolean |
matches(String uri)
检测是否匹配
|
static void |
setCaseSensitive(boolean caseSensitive)
设置区分大小写
|
public PathMatcher(String expr, boolean caseSensitive)
public static void setCaseSensitive(boolean caseSensitive)
public static boolean isCaseSensitive()
public static PathMatcher get(String expr)
public static PathMatcher get(String expr, boolean addStarts)
public int depth()
public boolean matches(String uri)
Copyright © 2025. All rights reserved.