Package grails.web.mapping
Interface UrlMappingEvaluator
-
- All Known Implementing Classes:
DefaultUrlMappingEvaluator
public interface UrlMappingEvaluatorEvaluates URL mapping from the given Spring Resource or class.- Since:
- 0.5
- See Also:
UrlMapping,UrlMappingInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<UrlMapping>evaluateMappings(groovy.lang.Closure closure)Evaluates mapping from the given closure if possiblejava.util.List<UrlMapping>evaluateMappings(java.lang.Class theClass)Evaluates mapping from the given class if possiblejava.util.List<UrlMapping>evaluateMappings(org.springframework.core.io.Resource resource)Evaluates URL mapping from the give Spring Resource
-
-
-
Method Detail
-
evaluateMappings
java.util.List<UrlMapping> evaluateMappings(org.springframework.core.io.Resource resource)
Evaluates URL mapping from the give Spring Resource- Parameters:
resource- The Spring Resource to evaluate mapping from- Returns:
- A list of UrlMapping instances
-
evaluateMappings
java.util.List<UrlMapping> evaluateMappings(java.lang.Class theClass)
Evaluates mapping from the given class if possible- Parameters:
theClass- The class to evaluate mapping from- Returns:
- A list of UrlMapping instances
-
evaluateMappings
java.util.List<UrlMapping> evaluateMappings(groovy.lang.Closure closure)
Evaluates mapping from the given closure if possible- Parameters:
closure- The closure to evaluate mapping from- Returns:
- A list of UrlMapping instances
-
-