@Test public void testFilterWildcard() { PathTemplateFilter filter = PathTemplateFilter.create("foo").includeAll().build(); PathAddress address = PathAddress.pathAddress("blah"); address.addPathTemplateResolver(new PathTemplateResolver() { @Override public String resolve(String templateName) { if (templateName.equals("foo")) return "bar"; return null; } }); Assert.assertTrue(address.accepts(filter)); }
public static Builder create(String pathTemplate) { return new BuilderImpl(pathTemplate); }
PathTemplateFilter { public static Builder create(String pathTemplate) { return new BuilderImpl(pathTemplate); } }
PathTemplateFilter { public static Builder create(String pathTemplate) { return new BuilderImpl(pathTemplate); }  }
PathTemplateFilter { public static Builder create(String pathTemplate) { return new BuilderImpl(pathTemplate); }  abstract boolean hasPathTemplate(String pathTemplateName); static PathTemplateFilter parse(List<String> attributes); static Builder create(String pathTemplate); }
PathTemplateFilter { public static Builder create(String pathTemplate) { return new BuilderImpl(pathTemplate); }  abstract boolean hasPathTemplate(String pathTemplateName); static PathTemplateFilter parse(List<String> attributes); static Builder create(String pathTemplate);  }