@Test public void simpleTemplateMultipleSequentialExpressions() { String template = "https: UriTemplate uriTemplate = UriTemplate.create(template, Util.UTF_8); List<String> uriTemplateVariables = uriTemplate.getVariables(); assertThat(uriTemplateVariables).contains("foo", "bar", "baz").hasSize(3); Map<String, Object> variables = new LinkedHashMap<>(); variables.put("foo", "first"); variables.put("bar", "second"); variables.put("baz", "third"); 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);  }