类 StaticResourceRequest.StaticResourceRequestMatcher
- java.lang.Object
- org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<DispatcherServletPath>
- org.springframework.boot.autoconfigure.security.servlet.StaticResourceRequest.StaticResourceRequestMatcher
- 所有已实现的接口:
org.springframework.security.web.util.matcher.RequestMatcher
public static final class StaticResourceRequest.StaticResourceRequestMatcher extends org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<DispatcherServletPath>
The request matcher used to match against resourceLocations
.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
方法详细资料
excluding
public StaticResourceRequest.StaticResourceRequestMatcher excluding(StaticResourceLocation first, StaticResourceLocation... rest)
Return a newStaticResourceRequest.StaticResourceRequestMatcher
based 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.StaticResourceRequestMatcher
based on this one but excluding the specified locations.- 参数:
locations
- the locations to exclude- 返回:
- a new
StaticResourceRequest.StaticResourceRequestMatcher
initialized
protected void initialized(Supplier<DispatcherServletPath> dispatcherServletPath)
- 覆盖:
initialized
在类中org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<DispatcherServletPath>
matches
protected boolean matches(javax.servlet.http.HttpServletRequest request, Supplier<DispatcherServletPath> context)
- 指定者:
matches
在类中org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<DispatcherServletPath>