List of usage examples for org.springframework.hateoas UriTemplate expand
public URI expand(Map<String, ? extends Object> parameters)
From source file:com.github.hateoas.forms.affordance.Affordance.java
/** * Expands template variables, arguments must satisfy all required template variables, optional variables will be removed. * * @param arguments to expansion in the order they appear in the template * @return expanded affordance/*w ww . j a v a 2 s.com*/ */ @Override public Affordance expand(final Object... arguments) { UriTemplate template = new UriTemplate(partialUriTemplate.asComponents().toString()); String expanded = template.expand(arguments).toASCIIString(); return new Affordance(expanded, linkParams, actionDescriptors); }
From source file:com.github.hateoas.forms.affordance.Affordance.java
/** * Expands template variables, arguments must satisfy all required template variables, unsatisfied optional arguments will be removed. * * @param arguments to expansion// ww w . ja va 2 s . c o m * @return expanded affordance */ @Override public Affordance expand(final Map<String, ? extends Object> arguments) { UriTemplate template = new UriTemplate(partialUriTemplate.asComponents().toString()); String expanded = template.expand(arguments).toASCIIString(); return new Affordance(expanded, linkParams, actionDescriptors); }
From source file:de.escalon.hypermedia.affordance.Affordance.java
/** * Expands template variables, arguments must satisfy all required template variables, optional variables will be * removed./*from w w w . j a v a 2s .co m*/ * * @param arguments * to expansion in the order they appear in the template * @return expanded affordance */ @Override public Affordance expand(Object... arguments) { UriTemplate template = new UriTemplate(partialUriTemplate.asComponents().toString()); String expanded = template.expand(arguments).toASCIIString(); return new Affordance(expanded, linkParams, actionDescriptors); }
From source file:de.escalon.hypermedia.affordance.Affordance.java
/** * Expands template variables, arguments must satisfy all required template variables, unsatisfied optional * arguments will be removed.// w w w.j a v a 2 s . com * * @param arguments * to expansion * @return expanded affordance */ @Override public Affordance expand(Map<String, ? extends Object> arguments) { UriTemplate template = new UriTemplate(partialUriTemplate.asComponents().toString()); String expanded = template.expand(arguments).toASCIIString(); return new Affordance(expanded, linkParams, actionDescriptors); }