-
- All Implemented Interfaces:
public final class URITemplateRFC 6570 URI template and parameters.
-
-
Constructor Summary
Constructors Constructor Description URITemplate(String template, Map<String, Object> parameters)
-
Method Summary
Modifier and Type Method Description final StringgetTemplate()Template format. final Map<String, Object>getParameters()Parameters to be used when resolving the template. final URIBuilderresolve(String relative, Map<String, Object> parameters, Map<KClass<?>, Function1<Object, String>> encoders)Produces a full URI by resolving the given relative URI (if provided) and then replacing parameters in the template with a combination of the io.outfoxx.sunday.URITemplate.parameters overridden by the given parameters. -
-
Method Detail
-
getTemplate
final String getTemplate()
Template format.
-
getParameters
final Map<String, Object> getParameters()
Parameters to be used when resolving the template.
-
resolve
final URIBuilder resolve(String relative, Map<String, Object> parameters, Map<KClass<?>, Function1<Object, String>> encoders)
Produces a full URI by resolving the given relative URI (if provided) and then replacing parameters in the template with a combination of the io.outfoxx.sunday.URITemplate.parameters overridden by the given parameters.
- Parameters:
relative- Optional relative URI to resolve against the template before parameter replacement.parameters- Parameters that override the io.outfoxx.sunday.URITemplate.parameters on the template instance before parameter replacement.encoders- Map of PathEncoders used to convert parameters to path strings.
-
-
-
-