public class DefaultUrlMappingEvaluator extends java.lang.Object
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 |
---|---|---|
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 |
Constructor and description |
---|
DefaultUrlMappingEvaluator
(javax.servlet.ServletContext servletContext) @deprecated Used DefaultUrLMappingsEvaluator(ApplicationContext) instead |
DefaultUrlMappingEvaluator
(org.springframework.web.context.WebApplicationContext applicationContext) |
Type | Name and description |
---|---|
java.util.List |
evaluateMappings(org.springframework.core.io.Resource resource) |
java.util.List<UrlMapping> |
evaluateMappings(java.lang.Class theClass) |
java.util.List<UrlMapping> |
evaluateMappings(groovy.lang.Closure closure) |
void |
setClassLoader(java.lang.ClassLoader classLoader) |
void |
setPluginManager(GrailsPluginManager pluginManager) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |
servletContext
- The servlet context