Package org.soulwing.prospecto.jaxrs.api
Class MapPathTemplateResolver
- java.lang.Object
-
- org.soulwing.prospecto.jaxrs.api.MapPathTemplateResolver
-
- All Implemented Interfaces:
PathTemplateResolver
public abstract class MapPathTemplateResolver extends Object implements PathTemplateResolver
A template resolver that builds a URI from map of parameters.- Author:
- Carl Harris
-
-
Constructor Summary
Constructors Constructor Description MapPathTemplateResolver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Stringresolve(String template, ViewContext context)Resolves placeholders in the given template to produce a path.protected abstract Map<String,Object>templateMap(ViewContext context)Creates a map of named values used to resolve placeholders in a path template.
-
-
-
Method Detail
-
resolve
public final String resolve(String template, ViewContext context)
Description copied from interface:PathTemplateResolverResolves placeholders in the given template to produce a path.- Specified by:
resolvein interfacePathTemplateResolver- Parameters:
template- the template to resolvecontext- context to be used in resolving placeholders- Returns:
- fully resolved path
-
templateMap
protected abstract Map<String,Object> templateMap(ViewContext context)
Creates a map of named values used to resolve placeholders in a path template.- Parameters:
context- template context- Returns:
- map
-
-