public class GrailsViewResolver
extends org.springframework.web.servlet.view.InternalResourceViewResolver
implements org.codehaus.groovy.grails.plugins.PluginManagerAware, org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAware
| Modifier and Type | Field and Description |
|---|---|
protected GrailsConventionGroovyPageLocator |
groovyPageLocator |
static java.lang.String |
GSP_SUFFIX |
static java.lang.String |
JSP_SUFFIX |
protected GroovyPagesTemplateEngine |
templateEngine |
FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX| Constructor and Description |
|---|
GrailsViewResolver()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCacheTimeout() |
protected org.springframework.web.servlet.View |
loadView(java.lang.String viewName,
java.util.Locale locale) |
void |
setCacheTimeout(long cacheTimeout) |
void |
setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication) |
void |
setGroovyPageLocator(GrailsConventionGroovyPageLocator groovyPageLocator) |
void |
setPluginManager(org.codehaus.groovy.grails.plugins.GrailsPluginManager pluginManager) |
void |
setTemplateEngine(GroovyPagesTemplateEngine templateEngine) |
buildView, requiredViewClass, setAlwaysInclude, setExposeContextBeansAsAttributes, setExposedContextBeanNamescanHandle, createView, getAttributesMap, getCacheKey, getContentType, getOrder, getPrefix, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, initApplicationContext, isRedirectContextRelative, isRedirectHttp10Compatible, setAttributes, setAttributesMap, setContentType, setExposePathVariables, setOrder, setPrefix, setRedirectContextRelative, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNamesclearCache, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheLimit, setCacheUnresolvedgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic static final java.lang.String GSP_SUFFIX
public static final java.lang.String JSP_SUFFIX
protected GroovyPagesTemplateEngine templateEngine
protected GrailsConventionGroovyPageLocator groovyPageLocator
public void setGroovyPageLocator(GrailsConventionGroovyPageLocator groovyPageLocator)
protected org.springframework.web.servlet.View loadView(java.lang.String viewName,
java.util.Locale locale)
throws java.lang.Exception
loadView in class org.springframework.web.servlet.view.UrlBasedViewResolverjava.lang.Exceptionpublic void setPluginManager(org.codehaus.groovy.grails.plugins.GrailsPluginManager pluginManager)
setPluginManager in interface org.codehaus.groovy.grails.plugins.PluginManagerAwarepublic void setTemplateEngine(GroovyPagesTemplateEngine templateEngine)
public void setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication)
setGrailsApplication in interface org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAwarepublic long getCacheTimeout()
public void setCacheTimeout(long cacheTimeout)