RoutingEntry { static boolean fastMatch(String pathPattern, String uri) { return fastMatch(pathPattern, 0, uri, 0, cutUri(uri)); }  String[] getPermissionsRequired(); void setPermissionsRequired(String[] permissionsRequired); String[] getPermissionsDesired(); void setPermissionsDesired(String[] permissionsDesired); String[] getModulePermissions(); void setModulePermissions(String[] modulePermissions); @JsonIgnore ProxyType getProxyType(); String getType(); void setType(String type); String getRedirectPath(); void setRedirectPath(String redirectPath); String getUnit(); void setUnit(String unit); String getDelay(); void setDelay(String delay); @JsonIgnore long getDelayMilliSeconds(); String getLevel(); void setLevel(String level); @JsonIgnore String getPhaseLevel(); String[] getMethods(); void setMethods(String[] methods); @JsonIgnore HttpMethod getDefaultMethod(HttpMethod defaultMethod); @JsonIgnore String getStaticPath(); @JsonIgnore String generateSystemId(String moduleId); String getPath(); void setPath(String path); String getPathPattern(); String getRewritePath(); void setRewritePath(String rewritePath); void setPathPattern(String pathPattern); String[] getPermissionsRequiredTenant(); void setPermissionsRequiredTenant(String[] permissionsRequiredTenant); boolean matchUriTenant(String uri, String tenant); boolean match(String uri, String method); String getRedirectUri(String uri); String getPhase(); void setPhase(String phase); @JsonProperty("delegateCORS") boolean isDelegateCors(); void setDelegateCors(boolean delegateCors); String validateHandlers(ProxyContext pc, String mod); String validateFilters(ProxyContext pc, String mod);  }
@Test void testFastMatch() { assertTrue(RoutingEntry.fastMatch("{id}/", "a/")); assertFalse(RoutingEntry.fastMatch("{/", "a/")); assertTrue(RoutingEntry.fastMatch("{", "a")); assertTrue(RoutingEntry.fastMatch("{}/", "a/")); assertFalse(RoutingEntry.fastMatch("{id}/", "/")); assertFalse(RoutingEntry.fastMatch("/{id}/", " assertTrue(RoutingEntry.fastMatch("/{id}/", "/a/")); assertTrue(RoutingEntry.fastMatch("{id}/", "a/#a?")); assertTrue(RoutingEntry.fastMatch("{id}/", "a/?a#")); assertFalse(RoutingEntry.fastMatch("{id}/", "a#/")); assertFalse(RoutingEntry.fastMatch("{id}/", "a?/")); assertTrue(RoutingEntry.fastMatch("{ud}/", "a/?a")); assertTrue(RoutingEntry.fastMatch("{id1}{id2}", "a assertFalse(RoutingEntry.fastMatch("{id1}{id2}", " }