Class StaticResourceRequest.StaticResourceServerWebExchange
java.lang.Object
org.springframework.boot.security.autoconfigure.web.reactive.StaticResourceRequest.StaticResourceServerWebExchange
- All Implemented Interfaces:
ServerWebExchangeMatcher
- Enclosing class:
StaticResourceRequest
public static final class StaticResourceRequest.StaticResourceServerWebExchange
extends Object
implements ServerWebExchangeMatcher
The server web exchange matcher used to match against resource
locations.- Since:
- 4.0.0
- Author:
- Madhura Bhave
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServerWebExchangeMatcher
ServerWebExchangeMatcher.MatchResult -
Method Summary
Modifier and TypeMethodDescriptionexcluding(Set<StaticResourceLocation> locations) Return a newStaticResourceRequest.StaticResourceServerWebExchangebased on this one but excluding the specified locations.excluding(StaticResourceLocation first, StaticResourceLocation... rest) Return a newStaticResourceRequest.StaticResourceServerWebExchangebased on this one but excluding the specified locations.reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange)
-
Method Details
-
excluding
public StaticResourceRequest.StaticResourceServerWebExchange excluding(StaticResourceLocation first, StaticResourceLocation... rest) Return a newStaticResourceRequest.StaticResourceServerWebExchangebased on this one but excluding the specified locations.- Parameters:
first- the first location to excluderest- additional locations to exclude- Returns:
- a new
StaticResourceRequest.StaticResourceServerWebExchange
-
excluding
public StaticResourceRequest.StaticResourceServerWebExchange excluding(Set<StaticResourceLocation> locations) Return a newStaticResourceRequest.StaticResourceServerWebExchangebased on this one but excluding the specified locations.- Parameters:
locations- the locations to exclude- Returns:
- a new
StaticResourceRequest.StaticResourceServerWebExchange
-
matches
public reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange) - Specified by:
matchesin interfaceServerWebExchangeMatcher
-