|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.mapping.DefaultUrlMappingEvaluator
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}/)
}
}
}
Constructor Summary | |
DefaultUrlMappingEvaluator(javax.servlet.ServletContext servletContext)
@deprecated Used DefaultUrLMappingsEvaluator(ApplicationContext) instead |
|
DefaultUrlMappingEvaluator(org.springframework.web.context.WebApplicationContext applicationContext)
|
Method Summary | |
---|---|
java.util.List
|
evaluateMappings(org.springframework.core.io.Resource resource)
|
java.util.List
|
evaluateMappings(java.lang.Class theClass)
|
java.util.List
|
evaluateMappings(groovy.lang.Closure closure)
|
void
|
setClassLoader(java.lang.ClassLoader classLoader)
|
void
|
setPluginManager(GrailsPluginManager pluginManager)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Constructor Detail |
---|
@Deprecated public DefaultUrlMappingEvaluator(javax.servlet.ServletContext servletContext)
servletContext
- The servlet context
public DefaultUrlMappingEvaluator(org.springframework.web.context.WebApplicationContext applicationContext)
Method Detail |
---|
@SuppressWarnings("rawtypes") public java.util.List evaluateMappings(org.springframework.core.io.Resource resource)
@SuppressWarnings({"unchecked","rawtypes"}) public java.util.List evaluateMappings(java.lang.Class theClass)
@SuppressWarnings("rawtypes") public java.util.List evaluateMappings(groovy.lang.Closure closure)
public void setClassLoader(java.lang.ClassLoader classLoader)
public void setPluginManager(GrailsPluginManager pluginManager)
Groovy Documentation