Class StaticResourceRequest.StaticResourceRequestMatcher
java.lang.Object
org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<DispatcherServletPath>
org.springframework.boot.autoconfigure.security.servlet.StaticResourceRequest.StaticResourceRequestMatcher
- All Implemented Interfaces:
org.springframework.security.web.util.matcher.RequestMatcher
- Enclosing class:
- StaticResourceRequest
public static final class StaticResourceRequest.StaticResourceRequestMatcher
extends org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<DispatcherServletPath>
The request matcher used to match against resource
Locations.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
org.springframework.security.web.util.matcher.RequestMatcher.MatchResult -
Method Summary
Modifier and TypeMethodDescriptionexcluding(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(org.springframework.web.context.WebApplicationContext applicationContext) protected voidinitialized(Supplier<DispatcherServletPath> dispatcherServletPath) protected booleanmatches(jakarta.servlet.http.HttpServletRequest request, Supplier<DispatcherServletPath> context) Methods inherited from class org.springframework.boot.security.servlet.ApplicationContextRequestMatcher
matchesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
matcher
-
Method Details
-
excluding
public StaticResourceRequest.StaticResourceRequestMatcher excluding(StaticResourceLocation first, StaticResourceLocation... rest) Return a newStaticResourceRequest.StaticResourceRequestMatcherbased on this one but excluding the specified locations.- Parameters:
first- the first location to excluderest- additional locations to exclude- Returns:
- a new
StaticResourceRequest.StaticResourceRequestMatcher
-
excluding
public StaticResourceRequest.StaticResourceRequestMatcher excluding(Set<StaticResourceLocation> locations) Return a newStaticResourceRequest.StaticResourceRequestMatcherbased on this one but excluding the specified locations.- Parameters:
locations- the locations to exclude- Returns:
- a new
StaticResourceRequest.StaticResourceRequestMatcher
-
initialized
- Overrides:
initializedin classorg.springframework.boot.security.servlet.ApplicationContextRequestMatcher<DispatcherServletPath>
-
ignoreApplicationContext
protected boolean ignoreApplicationContext(org.springframework.web.context.WebApplicationContext applicationContext) - Overrides:
ignoreApplicationContextin classorg.springframework.boot.security.servlet.ApplicationContextRequestMatcher<DispatcherServletPath>
-
matches
protected boolean matches(jakarta.servlet.http.HttpServletRequest request, Supplier<DispatcherServletPath> context) - Specified by:
matchesin classorg.springframework.boot.security.servlet.ApplicationContextRequestMatcher<DispatcherServletPath>
-