public class DefaultUrlMappingEvaluator extends java.lang.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 |
---|---|---|
class |
DefaultUrlMappingEvaluator.MappingCapturingClosure |
A Closure that captures a call to a method that accepts a single closure |
class |
DefaultUrlMappingEvaluator.UrlGroupMappingRecursionBuilder |
|
class |
DefaultUrlMappingEvaluator.UrlMappingBuilder |
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
ACTION_CREATE |
|
static java.lang.String |
ACTION_DELETE |
|
static java.lang.String |
ACTION_EDIT |
|
static java.lang.String |
ACTION_INDEX |
|
static java.lang.String |
ACTION_PATCH |
|
static java.lang.String |
ACTION_SAVE |
|
static java.lang.String |
ACTION_SHOW |
|
static java.lang.String |
ACTION_UPDATE |
|
static java.util.List<java.lang.String> |
DEFAULT_RESOURCES_INCLUDES |
|
static java.util.List<java.lang.String> |
DEFAULT_RESOURCE_INCLUDES |
|
private static java.lang.String |
EXCEPTION |
|
private static org.slf4j.Logger |
LOG |
|
private static java.lang.String |
PARSE_REQUEST |
|
private static java.lang.String |
RESOURCE |
|
private static java.lang.String |
RESOURCES |
|
private static java.lang.String |
SINGLE |
|
private org.springframework.context.ApplicationContext |
applicationContext |
|
private groovy.lang.GroovyClassLoader |
classLoader |
|
private org.grails.datastore.gorm.validation.constraints.registry.ConstraintRegistry |
constraintRegistry |
|
private org.grails.datastore.gorm.validation.constraints.eval.ConstraintsEvaluator |
constraintsEvaluator |
|
private GrailsApplication |
grailsApplication |
|
private GrailsPluginManager |
pluginManager |
|
private UrlMappingParser |
urlParser |
Constructor and description |
---|
DefaultUrlMappingEvaluator
(org.springframework.context.ApplicationContext applicationContext) |
Type Params | Return Type | Name and description |
---|---|---|
|
public java.util.List |
evaluateMappings(org.springframework.core.io.Resource resource) |
|
public java.util.List<UrlMapping> |
evaluateMappings(java.lang.Class theClass) |
|
private java.util.List<UrlMapping> |
evaluateMappings(groovy.lang.GroovyObject go, groovy.lang.Closure<?> mappings, groovy.lang.Binding binding) |
|
public java.util.List<UrlMapping> |
evaluateMappings(groovy.lang.Closure closure) |
|
public void |
setClassLoader(java.lang.ClassLoader classLoader) |
|
public void |
setPluginManager(GrailsPluginManager pluginManager) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |