public class RestfulMatchUtil extends Object
| 构造器和说明 |
|---|
RestfulMatchUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
match(javax.servlet.http.HttpServletRequest request,
HttpMethod httpMethod,
String pattern)
判断request使用的请求方法与httpMethod一致且请求的路径与pattern一致
参考了spring-security中org.springframework.security.web.util.matcher.AntPathRequestMatcher#matches(javax.servlet.http.HttpServletRequest)的写法
|
public static boolean match(javax.servlet.http.HttpServletRequest request,
HttpMethod httpMethod,
String pattern)
request - 请求httpMethod - 配置的http请求方法pattern - 配置的路径patternCopyright © 2019. All rights reserved.