public class SimpleHttpRequestMatcher extends Object implements HttpRequestMatcher
| 构造器和说明 |
|---|
SimpleHttpRequestMatcher() |
SimpleHttpRequestMatcher(org.springframework.util.PathMatcher pathMatcher,
org.springframework.web.util.UrlPathHelper urlPathHelper)
创建HTTP请求匹配对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.util.PathMatcher |
getPathMatcher() |
org.springframework.web.util.UrlPathHelper |
getUrlPathHelper() |
boolean |
match(List<String> patterns,
javax.servlet.http.HttpServletRequest request)
匹配请求对象,迭代匹配模式,如果匹配成功,返回true,否则返回false。
|
boolean |
match(List<String> patterns,
String path)
匹配请求路径,迭代匹配模式,如果匹配成功,返回true,否则返回false。
|
boolean |
match(String pattern,
javax.servlet.http.HttpServletRequest request)
匹配请求对象,如果匹配成功,返回true,否则返回false。
|
boolean |
match(String pattern,
String path)
匹配请求路径,如果匹配成功,返回true,否则返回false。
|
public SimpleHttpRequestMatcher()
public SimpleHttpRequestMatcher(org.springframework.util.PathMatcher pathMatcher,
org.springframework.web.util.UrlPathHelper urlPathHelper)
pathMatcher - 可能为空urlPathHelper - 可能为空public boolean match(List<String> patterns, javax.servlet.http.HttpServletRequest request)
HttpRequestMatchermatch 在接口中 HttpRequestMatcherpatterns - 匹配模式request - 请求对象public boolean match(List<String> patterns, String path)
HttpRequestMatchermatch 在接口中 HttpRequestMatcherpatterns - 匹配模式path - 请求路径public boolean match(String pattern, javax.servlet.http.HttpServletRequest request)
HttpRequestMatchermatch 在接口中 HttpRequestMatcherpattern - 匹配模式request - 请求对象public boolean match(String pattern, String path)
HttpRequestMatchermatch 在接口中 HttpRequestMatcherpattern - 匹配模式path - 请求路径public org.springframework.util.PathMatcher getPathMatcher()
getPathMatcher 在接口中 HttpRequestMatcherpublic org.springframework.web.util.UrlPathHelper getUrlPathHelper()
getUrlPathHelper 在接口中 HttpRequestMatcherCopyright © 2023. All rights reserved.