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 resourceLocations
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StaticResourceRequest.StaticResourceRequestMatcher
excluding(Set<StaticResourceLocation> locations)
Return a newStaticResourceRequest.StaticResourceRequestMatcher
based on this one but excluding the specified locations.StaticResourceRequest.StaticResourceRequestMatcher
excluding(StaticResourceLocation first, StaticResourceLocation... rest)
Return a newStaticResourceRequest.StaticResourceRequestMatcher
based on this one but excluding the specified locations.protected void
initialized(Supplier<DispatcherServletPath> dispatcherServletPath)
protected boolean
matches(javax.servlet.http.HttpServletRequest request, Supplier<DispatcherServletPath> context)
Method Detail
excluding
public StaticResourceRequest.StaticResourceRequestMatcher excluding(StaticResourceLocation first, StaticResourceLocation... rest)
Return a newStaticResourceRequest.StaticResourceRequestMatcher
based 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.StaticResourceRequestMatcher
based on this one but excluding the specified locations.- Parameters:
locations
- the locations to exclude- Returns:
- a new
StaticResourceRequest.StaticResourceRequestMatcher
initialized
protected void initialized(Supplier<DispatcherServletPath> dispatcherServletPath)
- Overrides:
initialized
in classorg.springframework.boot.security.servlet.ApplicationContextRequestMatcher<DispatcherServletPath>
matches
protected boolean matches(javax.servlet.http.HttpServletRequest request, Supplier<DispatcherServletPath> context)
- Specified by:
matches
in classorg.springframework.boot.security.servlet.ApplicationContextRequestMatcher<DispatcherServletPath>