类 StaticResourceRequest.StaticResourceRequestMatcher
java.lang.Object
org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<DispatcherServletPath>
org.springframework.boot.autoconfigure.security.servlet.StaticResourceRequest.StaticResourceRequestMatcher
- 所有已实现的接口:
RequestMatcher
public static final class StaticResourceRequest.StaticResourceRequestMatcher
extends ApplicationContextRequestMatcher<DispatcherServletPath>
The request matcher used to match against resource
Locations.-
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.security.web.util.matcher.RequestMatcher
RequestMatcher.MatchResult -
方法概要
修饰符和类型方法说明excluding(Set<StaticResourceLocation> locations) Return a newStaticResourceRequest.StaticResourceRequestMatcherbased on this one but excluding the specified locations.excluding(StaticResourceLocation first, StaticResourceLocation... rest) Return a newStaticResourceRequest.StaticResourceRequestMatcherbased on this one but excluding the specified locations.protected booleanignoreApplicationContext(WebApplicationContext applicationContext) Returns if theWebApplicationContextshould be ignored and not used for matching.protected voidinitialized(Supplier<DispatcherServletPath> dispatcherServletPath) Method that can be implemented by subclasses that wish to initialize items the first time that the matcher is called.protected booleanmatches(HttpServletRequest request, Supplier<DispatcherServletPath> context) Decides whether the rule implemented by the strategy matches the supplied request.从类继承的方法 org.springframework.boot.security.servlet.ApplicationContextRequestMatcher
matches从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.security.web.util.matcher.RequestMatcher
matcher
-
方法详细资料
-
excluding
public StaticResourceRequest.StaticResourceRequestMatcher excluding(StaticResourceLocation first, StaticResourceLocation... rest) Return a newStaticResourceRequest.StaticResourceRequestMatcherbased on this one but excluding the specified locations.- 参数:
first- the first location to excluderest- additional locations to exclude- 返回:
- a new
StaticResourceRequest.StaticResourceRequestMatcher
-
excluding
public StaticResourceRequest.StaticResourceRequestMatcher excluding(Set<StaticResourceLocation> locations) Return a newStaticResourceRequest.StaticResourceRequestMatcherbased on this one but excluding the specified locations.- 参数:
locations- the locations to exclude- 返回:
- a new
StaticResourceRequest.StaticResourceRequestMatcher
-
initialized
从类复制的说明:ApplicationContextRequestMatcherMethod that can be implemented by subclasses that wish to initialize items the first time that the matcher is called. This method will be called only once and only ifApplicationContextRequestMatcher.ignoreApplicationContext(WebApplicationContext)returnsfalse. Note that the supplied context will be based on the first request sent to the matcher.- 覆盖:
initialized在类中ApplicationContextRequestMatcher<DispatcherServletPath>- 参数:
dispatcherServletPath- a supplier for the initialized context (may throw an exception)- 另请参阅:
-
ignoreApplicationContext
从类复制的说明:ApplicationContextRequestMatcherReturns if theWebApplicationContextshould be ignored and not used for matching. If this method returnstruethen the context will not be used and thematchesmethod will returnfalse.- 覆盖:
ignoreApplicationContext在类中ApplicationContextRequestMatcher<DispatcherServletPath>- 参数:
applicationContext- the candidate web application context- 返回:
- if the application context should be ignored
-
matches
从类复制的说明:ApplicationContextRequestMatcherDecides whether the rule implemented by the strategy matches the supplied request.- 指定者:
matches在类中ApplicationContextRequestMatcher<DispatcherServletPath>- 参数:
request- the source requestcontext- a supplier for the initialized context (may throw an exception)- 返回:
- if the request matches
-