|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.springframework.web.servlet.view.InternalResourceViewResolver
org.codehaus.groovy.grails.web.servlet.view.GrailsViewResolver
public class GrailsViewResolver extends InternalResourceViewResolver
Evaluates the existance of a view for different extensions choosing which one to delegate to.
| Field Summary | |
|---|---|
static java.lang.String |
GSP_SUFFIX
|
static java.lang.String |
JSP_SUFFIX
|
protected GroovyPagesTemplateEngine |
templateEngine
|
| Constructor Summary | |
GrailsViewResolver()
Constructor. |
|
| Method Summary | |
|---|---|
protected View
|
loadView(java.lang.String viewName, java.util.Locale locale)
|
protected java.lang.String
|
resolveViewForController(groovy.lang.GroovyObject controller, GrailsApplication application, java.lang.String viewName, ResourceLoader loader)
Attempts to resolve a view relative to a controller. |
void
|
setPluginManager(GrailsPluginManager pluginManager)
|
void
|
setPrefix(java.lang.String prefix)
|
void
|
setResourceLoader(ResourceLoader resourceLoader)
|
void
|
setTemplateEngine(GroovyPagesTemplateEngine templateEngine)
|
| Field Detail |
|---|
public static final java.lang.String GSP_SUFFIX
public static final java.lang.String JSP_SUFFIX
protected GroovyPagesTemplateEngine templateEngine
| Constructor Detail |
|---|
public GrailsViewResolver()
| Method Detail |
|---|
@Override protected View loadView(java.lang.String viewName, java.util.Locale locale)
protected java.lang.String resolveViewForController(groovy.lang.GroovyObject controller, GrailsApplication application, java.lang.String viewName, ResourceLoader loader)
controller - The controller to resolve the view relative toapplication - The GrailsApplication instanceviewName - The views nameloader - The ResourceLoader to use
public void setPluginManager(GrailsPluginManager pluginManager)
@Override public void setPrefix(java.lang.String prefix)
public void setResourceLoader(ResourceLoader resourceLoader)
public void setTemplateEngine(GroovyPagesTemplateEngine templateEngine)
Groovy Documentation