| 程序包 | 说明 |
|---|---|
| com.github.zj.dreamly.simple.security.enums | |
| com.github.zj.dreamly.simple.security.spec | |
| com.github.zj.dreamly.simple.security.util |
| 限定符和类型 | 方法和说明 |
|---|---|
static HttpMethod |
HttpMethod.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HttpMethod[] |
HttpMethod.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
SpecRegistry |
SpecRegistry.add(HttpMethod httpMethod,
String path,
String expression) |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
RestfulMatchUtil.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)的写法
|
Copyright © 2019. All rights reserved.