(
io.envoyproxy.envoy.type.matcher.v3.PathMatcher proto)
| 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) { |
no test coverage detected