MCPcopy Create free account
hub / github.com/grpc/grpc-java / parsePathMatcher

Method parsePathMatcher

xds/src/main/java/io/grpc/xds/RbacFilter.java:303–313  ·  view source on GitHub ↗
(
          io.envoyproxy.envoy.type.matcher.v3.PathMatcher proto)

Source from the content-addressed store, hash-verified

301 }
302
303 private static PathMatcher parsePathMatcher(
304 io.envoyproxy.envoy.type.matcher.v3.PathMatcher proto) {
305 switch (proto.getRuleCase()) {
306 case PATH:
307 return PathMatcher.create(MatcherParser.parseStringMatcher(proto.getPath()));
308 case RULE_NOT_SET:
309 default:
310 throw new IllegalArgumentException(
311 "Unknown path matcher rule type: " + proto.getRuleCase());
312 }
313 }
314
315 private static RequestedServerNameMatcher parseRequestedServerNameMatcher(
316 io.envoyproxy.envoy.type.matcher.v3.StringMatcher proto) {

Callers 2

parsePermissionMethod · 0.95
parsePrincipalMethod · 0.95

Calls 3

createMethod · 0.95
parseStringMatcherMethod · 0.95
getPathMethod · 0.45

Tested by

no test coverage detected