Class GrpcRequest

java.lang.Object
org.springframework.boot.grpc.server.autoconfigure.security.web.servlet.GrpcRequest

public final class GrpcRequest extends Object
Factory that can be used to create a RequestMatcher to match against gRPC service locations.
Since:
4.1.0
  • Method Details

    • toAnyService

      public static GrpcRequest.GrpcServletRequestMatcher toAnyService()
      Returns a matcher that includes all gRPC services. The excluding method can be used to remove specific services by name if required. For example:
      GrpcServletRequest.toAnyService().excluding("my-service")
      
      Returns:
      the configured RequestMatcher