Package org.soulwing.prospecto.jaxrs.api
Interface PathTemplateResolver
-
- All Known Implementing Classes:
MapPathTemplateResolver
public interface PathTemplateResolverAn object that resolves placeholders in a path template to produce a path for a resource.- Author:
- Carl Harris
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringresolve(String template, ViewContext context)Resolves placeholders in the given template to produce a path.
-
-
-
Method Detail
-
resolve
String resolve(String template, ViewContext context) throws AmbiguousPathResolutionException
Resolves placeholders in the given template to produce a path.- Parameters:
template- the template to resolvecontext- context to be used in resolving placeholders- Returns:
- fully resolved path
- Throws:
AmbiguousPathResolutionException- if the path in the given context resolves to more than one resource method
-
-