public class DefaultUrlMappingEvaluator extends Object implements ClassLoaderAware, PluginManagerAware, UrlMappingEvaluator
A UrlMapping evaluator that evaluates Groovy scripts that are in the form:
mappings {
/$post/$year?/$month?/$day?" {
controller = "blog"
action = "show"
constraints {
year(matches:/\d{4}/)
month(matches:/\d{2}/)
}
}
}
Modifiers | Name | Description |
---|---|---|
protected class |
DefaultUrlMappingEvaluator.MappingCapturingClosure |
A Closure that captures a call to a method that accepts a single closure |
protected class |
DefaultUrlMappingEvaluator.UrlGroupMappingRecursionBuilder |
|
protected class |
DefaultUrlMappingEvaluator.UrlMappingBuilder |
Modifiers | Name | Description |
---|---|---|
static String |
ACTION_CREATE |
|
static String |
ACTION_DELETE |
|
static String |
ACTION_EDIT |
|
static String |
ACTION_INDEX |
|
static String |
ACTION_PATCH |
|
static String |
ACTION_SAVE |
|
static String |
ACTION_SHOW |
|
static String |
ACTION_UPDATE |
|
static List<String> |
DEFAULT_RESOURCES_INCLUDES |
|
static List<String> |
DEFAULT_RESOURCE_INCLUDES |
Constructor and description |
---|
DefaultUrlMappingEvaluator(ApplicationContext applicationContext) |
Type Params | Return Type | Name and description |
---|---|---|
|
public List<UrlMapping> |
evaluateMappings(Resource resource) |
|
public List<UrlMapping> |
evaluateMappings(Class theClass) |
|
public List<UrlMapping> |
evaluateMappings(Closure closure) |
|
public void |
setClassLoader(ClassLoader classLoader) |
|
public void |
setPluginManager(GrailsPluginManager pluginManager) |