@Test public void testWithoutDynamicPart() { final DynamicPathTemplate path = new DynamicPathTemplate("tmp/"); assertEquals("", path.replaceDynamicPart(ImmutableList.of())); }
private String replaceDynamicPart(Map<String, String> attributes) { return StringSubstitutor.replace(dynamicPart, attributes); }
DynamicPathTemplate implements Serializable { private String replaceDynamicPart(Map<String, String> attributes) { return StringSubstitutor.replace(dynamicPart, attributes); } }
DynamicPathTemplate implements Serializable { private String replaceDynamicPart(Map<String, String> attributes) { return StringSubstitutor.replace(dynamicPart, attributes); } DynamicPathTemplate(String rawPath); }
DynamicPathTemplate implements Serializable { private String replaceDynamicPart(Map<String, String> attributes) { return StringSubstitutor.replace(dynamicPart, attributes); } DynamicPathTemplate(String rawPath); List<String> getPlaceholderNames(); Map<String, String> getPlaceholderAttributes(List<String> values); String replaceDynamicPart(List<String> values); List<String> extractValuesFrom(Map<String, String> attributes); }
DynamicPathTemplate implements Serializable { private String replaceDynamicPart(Map<String, String> attributes) { return StringSubstitutor.replace(dynamicPart, attributes); } DynamicPathTemplate(String rawPath); List<String> getPlaceholderNames(); Map<String, String> getPlaceholderAttributes(List<String> values); String replaceDynamicPart(List<String> values); List<String> extractValuesFrom(Map<String, String> attributes); final String staticPrefix; final String dynamicPart; }