类 HerodotusRequestMatcher
java.lang.Object
cn.herodotus.engine.oauth2.authorization.definition.HerodotusRequestMatcher
- 所有已实现的接口:
Serializable,org.springframework.security.web.util.matcher.RequestMatcher
public final class HerodotusRequestMatcher
extends Object
implements org.springframework.security.web.util.matcher.RequestMatcher, Serializable
Description: 自定义 AntPathRequestMatcher
基于 AntPathRequestMatcher 代码,扩展了一些方法,解决原有 AntPathRequestMatcher 使用不方便问题。
- 作者:
- : gengwei.zheng
- 另请参阅:
- Date:
- : 2022/3/9 10:47
-
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.security.web.util.matcher.RequestMatcher
org.springframework.security.web.util.matcher.RequestMatcher.MatchResult -
构造器概要
构造器构造器说明HerodotusRequestMatcher(HerodotusRequest request) HerodotusRequestMatcher(String pattern) Creates a matcher with the specific pattern which will match all HTTP methods in a case sensitive manner.HerodotusRequestMatcher(String pattern, String httpMethod) Creates a matcher with the supplied pattern and HTTP method in a case sensitive manner.HerodotusRequestMatcher(String pattern, String httpMethod, boolean caseSensitive) Creates a matcher with the supplied pattern which will match the specified Http methodHerodotusRequestMatcher(String pattern, String httpMethod, boolean caseSensitive, org.springframework.web.util.UrlPathHelper urlPathHelper) Creates a matcher with the supplied pattern which will match the specified Http method -
方法概要
修饰符和类型方法说明booleaninthashCode()booleanbooleanmatches(HerodotusRequest request) booleanmatches(jakarta.servlet.http.HttpServletRequest request) Returns true if the configured pattern (and HTTP-Method) match those of the supplied request.voidsetHttpMethod(String httpMethod) voidsetPattern(String pattern) toString()从接口继承的方法 org.springframework.security.web.util.matcher.RequestMatcher
matcher
-
构造器详细资料
-
HerodotusRequestMatcher
public HerodotusRequestMatcher() -
HerodotusRequestMatcher
Creates a matcher with the specific pattern which will match all HTTP methods in a case sensitive manner.- 参数:
pattern- the ant pattern to use for matching
-
HerodotusRequestMatcher
-
HerodotusRequestMatcher
Creates a matcher with the supplied pattern and HTTP method in a case sensitive manner.- 参数:
pattern- the ant pattern to use for matchinghttpMethod- the HTTP method. Thematchesmethod will return false if the incoming request doesn't have the same method.
-
HerodotusRequestMatcher
Creates a matcher with the supplied pattern which will match the specified Http method- 参数:
pattern- the ant pattern to use for matchinghttpMethod- the HTTP method. Thematchesmethod will return false if the incoming request doesn't doesn't have the same method.caseSensitive- true if the matcher should consider case, else false
-
HerodotusRequestMatcher
public HerodotusRequestMatcher(String pattern, String httpMethod, boolean caseSensitive, org.springframework.web.util.UrlPathHelper urlPathHelper) Creates a matcher with the supplied pattern which will match the specified Http method- 参数:
pattern- the ant pattern to use for matchinghttpMethod- the HTTP method. Thematchesmethod will return false if the incoming request doesn't have the same method.caseSensitive- true if the matcher should consider case, else falseurlPathHelper- if non-null, will be used for extracting the path from the HttpServletRequest
-
-
方法详细资料
-
matches
public boolean matches(jakarta.servlet.http.HttpServletRequest request) Returns true if the configured pattern (and HTTP-Method) match those of the supplied request.- 指定者:
matches在接口中org.springframework.security.web.util.matcher.RequestMatcher- 参数:
request- the request to match against. The ant pattern will be matched against theservletPath+pathInfoof the request.
-
matches
-
getPattern
-
setPattern
-
getHttpMethod
-
setHttpMethod
-
isHasWildcard
public boolean isHasWildcard() -
equals
-
hashCode
public int hashCode() -
toString
-