Class GrpcRequest.GrpcReactiveRequestMatcher
java.lang.Object
org.springframework.boot.security.web.reactive.ApplicationContextServerWebExchangeMatcher<org.springframework.grpc.server.service.GrpcServiceDiscoverer>
org.springframework.boot.grpc.server.autoconfigure.security.web.reactive.GrpcRequest.GrpcReactiveRequestMatcher
- All Implemented Interfaces:
org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
- Enclosing class:
GrpcRequest
public static final class GrpcRequest.GrpcReactiveRequestMatcher
extends org.springframework.boot.security.web.reactive.ApplicationContextServerWebExchangeMatcher<org.springframework.grpc.server.service.GrpcServiceDiscoverer>
The matcher used to match against service locations.
- Since:
- 4.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult -
Method Summary
Modifier and TypeMethodDescriptionReturn a newGrpcRequest.GrpcServletRequestMatcherbased on this one but excluding the specified services.excluding(Collection<String> services) Return a newGrpcRequest.GrpcServletRequestMatcherbased on this one but excluding the specified services.protected voidinitialized(Supplier<org.springframework.grpc.server.service.GrpcServiceDiscoverer> context) protected reactor.core.publisher.Mono<org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult> matches(org.springframework.web.server.ServerWebExchange exchange, Supplier<org.springframework.grpc.server.service.GrpcServiceDiscoverer> context) Methods inherited from class org.springframework.boot.security.web.reactive.ApplicationContextServerWebExchangeMatcher
getContext, getServerNamespace, hasServerNamespace, ignoreApplicationContext, matches
-
Method Details
-
excluding
Return a newGrpcRequest.GrpcServletRequestMatcherbased on this one but excluding the specified services.- Parameters:
services- additional services to exclude- Returns:
- a new
GrpcRequest.GrpcServletRequestMatcher
-
excluding
Return a newGrpcRequest.GrpcServletRequestMatcherbased on this one but excluding the specified services.- Parameters:
services- additional service names to exclude- Returns:
- a new
GrpcRequest.GrpcServletRequestMatcher
-
initialized
protected void initialized(Supplier<org.springframework.grpc.server.service.GrpcServiceDiscoverer> context) - Overrides:
initializedin classorg.springframework.boot.security.web.reactive.ApplicationContextServerWebExchangeMatcher<org.springframework.grpc.server.service.GrpcServiceDiscoverer>
-
matches
protected reactor.core.publisher.Mono<org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult> matches(org.springframework.web.server.ServerWebExchange exchange, Supplier<org.springframework.grpc.server.service.GrpcServiceDiscoverer> context) - Specified by:
matchesin classorg.springframework.boot.security.web.reactive.ApplicationContextServerWebExchangeMatcher<org.springframework.grpc.server.service.GrpcServiceDiscoverer>
-