Class GrpcServletRequest.GrpcServletRequestMatcher
java.lang.Object
org.springframework.boot.security.web.servlet.ApplicationContextRequestMatcher<GrpcServiceDiscoverer>
org.springframework.boot.grpc.server.autoconfigure.security.GrpcServletRequest.GrpcServletRequestMatcher
- All Implemented Interfaces:
org.springframework.security.web.util.matcher.RequestMatcher
- Enclosing class:
GrpcServletRequest
public static final class GrpcServletRequest.GrpcServletRequestMatcher
extends org.springframework.boot.security.web.servlet.ApplicationContextRequestMatcher<GrpcServiceDiscoverer>
The request matcher used to match against resource locations.
- Since:
- 1.0.0
- Author:
- Dave Syer
-
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 newGrpcServletRequest.GrpcServletRequestMatcherbased on this one but excluding the specified services.Return a newGrpcServletRequest.GrpcServletRequestMatcherbased on this one but excluding the specified services.protected booleanignoreApplicationContext(org.springframework.web.context.WebApplicationContext context) protected voidinitialized(Supplier<GrpcServiceDiscoverer> context) protected booleanmatches(jakarta.servlet.http.HttpServletRequest request, Supplier<GrpcServiceDiscoverer> context) Methods inherited from class org.springframework.boot.security.web.servlet.ApplicationContextRequestMatcher
getServerNamespace, hasServerNamespace, 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 newGrpcServletRequest.GrpcServletRequestMatcherbased on this one but excluding the specified services.- Parameters:
rest- additional services to exclude- Returns:
- a new
GrpcServletRequest.GrpcServletRequestMatcher
-
excluding
Return a newGrpcServletRequest.GrpcServletRequestMatcherbased on this one but excluding the specified services.- Parameters:
exclusions- additional service names to exclude- Returns:
- a new
GrpcServletRequest.GrpcServletRequestMatcher
-
initialized
- Overrides:
initializedin classorg.springframework.boot.security.web.servlet.ApplicationContextRequestMatcher<GrpcServiceDiscoverer>
-
ignoreApplicationContext
protected boolean ignoreApplicationContext(org.springframework.web.context.WebApplicationContext context) - Overrides:
ignoreApplicationContextin classorg.springframework.boot.security.web.servlet.ApplicationContextRequestMatcher<GrpcServiceDiscoverer>
-
matches
protected boolean matches(jakarta.servlet.http.HttpServletRequest request, Supplier<GrpcServiceDiscoverer> context) - Specified by:
matchesin classorg.springframework.boot.security.web.servlet.ApplicationContextRequestMatcher<GrpcServiceDiscoverer>
-