@Test public void simpleTemplateWithRegularExpressions() { String template = "https: UriTemplate uriTemplate = UriTemplate.create(template, Util.UTF_8); assertThat(uriTemplate.getVariables()).contains("foo", "bar").hasSize(2); Map<String, Object> variables = new LinkedHashMap<>(); variables.put("foo", 1234); variables.put("bar", "stuff"); String expandedTemplate = uriTemplate.expand(variables); assertThat(expandedTemplate).isEqualToIgnoringCase("https: assertThat(URI.create(expandedTemplate)).isNotNull(); }
public static UriTemplate create(String template, Charset charset) { return new UriTemplate(template, true, charset); }
UriTemplate extends Template { public static UriTemplate create(String template, Charset charset) { return new UriTemplate(template, true, charset); } }
UriTemplate extends Template { public static UriTemplate create(String template, Charset charset) { return new UriTemplate(template, true, charset); } private  UriTemplate(String template, boolean encodeSlash, Charset charset); }
UriTemplate extends Template { public static UriTemplate create(String template, Charset charset) { return new UriTemplate(template, true, charset); } private  UriTemplate(String template, boolean encodeSlash, Charset charset); static UriTemplate create(String template, Charset charset); static UriTemplate create(String template, boolean encodeSlash, Charset charset); static UriTemplate append(UriTemplate uriTemplate, String fragment); }
UriTemplate extends Template { public static UriTemplate create(String template, Charset charset) { return new UriTemplate(template, true, charset); } private  UriTemplate(String template, boolean encodeSlash, Charset charset); static UriTemplate create(String template, Charset charset); static UriTemplate create(String template, boolean encodeSlash, Charset charset); static UriTemplate append(UriTemplate uriTemplate, String fragment);  }