@Test public void shouldNotMatchUrlWithFormat() { assertFalse(patternFormat.matches("/xxx/toddf/yyy/?a=foo")); assertFalse(patternFormat.matches("/xxx/toddf/yyy/joez/")); assertFalse(patternFormat.matches("/xxx/todd.fredrich/yyy/joez/")); assertFalse(patternFormat.matches("/aaa/toddf/yyy/joez.json")); assertFalse(patternFormat.matches("/xxx/toddf/bbb/joez.json")); assertFalse(patternFormat.matches("/xxx/toddf/yyy/")); assertFalse(patternFormat.matches("/xxx/toddf/yyy")); }
@Override public boolean matches(String url) { return match(url) != null; }
UrlPattern implements UrlMatcher { @Override public boolean matches(String url) { return match(url) != null; } }
UrlPattern implements UrlMatcher { @Override public boolean matches(String url) { return match(url) != null; } UrlPattern(String path); }
UrlPattern implements UrlMatcher { @Override public boolean matches(String url) { return match(url) != null; } UrlPattern(String path); void compile(); @Override boolean matches(String url); @Override UrlMatch match(String url); String getPattern(); List<String> getParameterNames(); @Override String toRegexPattern(String url); }
UrlPattern implements UrlMatcher { @Override public boolean matches(String url) { return match(url) != null; } UrlPattern(String path); void compile(); @Override boolean matches(String url); @Override UrlMatch match(String url); String getPattern(); List<String> getParameterNames(); @Override String toRegexPattern(String url);  }