Class GrpcRequest.GrpcServletRequestMatcher
java.lang.Object
org.springframework.boot.security.web.servlet.ApplicationContextRequestMatcher<org.springframework.grpc.server.service.GrpcServiceDiscoverer>
org.springframework.boot.grpc.server.autoconfigure.security.web.servlet.GrpcRequest.GrpcServletRequestMatcher
- All Implemented Interfaces:
org.springframework.security.web.util.matcher.RequestMatcher
- Enclosing class:
GrpcRequest
public static final class GrpcRequest.GrpcServletRequestMatcher
extends org.springframework.boot.security.web.servlet.ApplicationContextRequestMatcher<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.util.matcher.RequestMatcher
org.springframework.security.web.util.matcher.RequestMatcher.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 booleanmatches(jakarta.servlet.http.HttpServletRequest request, Supplier<org.springframework.grpc.server.service.GrpcServiceDiscoverer> context) Methods inherited from class org.springframework.boot.security.web.servlet.ApplicationContextRequestMatcher
getServerNamespace, hasServerNamespace, ignoreApplicationContext, matchesMethods inherited from class 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
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.servlet.ApplicationContextRequestMatcher<org.springframework.grpc.server.service.GrpcServiceDiscoverer>
-
matches
protected boolean matches(jakarta.servlet.http.HttpServletRequest request, Supplier<org.springframework.grpc.server.service.GrpcServiceDiscoverer> context) - Specified by:
matchesin classorg.springframework.boot.security.web.servlet.ApplicationContextRequestMatcher<org.springframework.grpc.server.service.GrpcServiceDiscoverer>
-