|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.context.support.ApplicationObjectSupport org.springframework.web.context.support.WebApplicationObjectSupport org.springframework.web.servlet.view.AbstractCachingViewResolver org.springframework.web.servlet.view.UrlBasedViewResolver org.springframework.web.servlet.view.InternalResourceViewResolver org.codehaus.groovy.grails.web.servlet.view.GrailsViewResolver
public class GrailsViewResolver extends org.springframework.web.servlet.view.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 GrailsConventionGroovyPageLocator |
groovyPageLocator
|
protected GroovyPagesTemplateEngine |
templateEngine
|
Fields inherited from class org.springframework.web.servlet.view.InternalResourceViewResolver | |
---|---|
REDIRECT_URL_PREFIX, FORWARD_URL_PREFIX, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Fields inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver | |
---|---|
REDIRECT_URL_PREFIX, FORWARD_URL_PREFIX, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
GrailsViewResolver()
Constructor. |
Method Summary | |
---|---|
long
|
getCacheTimeout()
|
protected org.springframework.web.servlet.View
|
loadView(java.lang.String viewName, java.util.Locale locale)
|
void
|
setCacheTimeout(long cacheTimeout)
|
void
|
setGrailsApplication(GrailsApplication grailsApplication)
|
void
|
setGroovyPageLocator(GrailsConventionGroovyPageLocator groovyPageLocator)
|
void
|
setPluginManager(GrailsPluginManager pluginManager)
|
void
|
setTemplateEngine(GroovyPagesTemplateEngine templateEngine)
|
Methods inherited from class org.springframework.web.servlet.view.InternalResourceViewResolver | |
---|---|
org.springframework.web.servlet.view.InternalResourceViewResolver#setAlwaysInclude(boolean), org.springframework.web.servlet.view.InternalResourceViewResolver#setExposeContextBeansAsAttributes(boolean), org.springframework.web.servlet.view.InternalResourceViewResolver#setExposedContextBeanNames([Ljava.lang.String;), org.springframework.web.servlet.view.InternalResourceViewResolver#setContentType(java.lang.String), org.springframework.web.servlet.view.InternalResourceViewResolver#setPrefix(java.lang.String), org.springframework.web.servlet.view.InternalResourceViewResolver#getOrder(), org.springframework.web.servlet.view.InternalResourceViewResolver#setAttributes(java.util.Properties), org.springframework.web.servlet.view.InternalResourceViewResolver#setOrder(int), org.springframework.web.servlet.view.InternalResourceViewResolver#setRequestContextAttribute(java.lang.String), org.springframework.web.servlet.view.InternalResourceViewResolver#setAttributesMap(java.util.Map), org.springframework.web.servlet.view.InternalResourceViewResolver#getAttributesMap(), org.springframework.web.servlet.view.InternalResourceViewResolver#setExposePathVariables(java.lang.Boolean), org.springframework.web.servlet.view.InternalResourceViewResolver#setSuffix(java.lang.String), org.springframework.web.servlet.view.InternalResourceViewResolver#setViewClass(java.lang.Class), org.springframework.web.servlet.view.InternalResourceViewResolver#setRedirectContextRelative(boolean), org.springframework.web.servlet.view.InternalResourceViewResolver#setRedirectHttp10Compatible(boolean), org.springframework.web.servlet.view.InternalResourceViewResolver#setViewNames([Ljava.lang.String;), org.springframework.web.servlet.view.InternalResourceViewResolver#clearCache(), org.springframework.web.servlet.view.InternalResourceViewResolver#setCache(boolean), org.springframework.web.servlet.view.InternalResourceViewResolver#isCache(), org.springframework.web.servlet.view.InternalResourceViewResolver#removeFromCache(java.lang.String, java.util.Locale), org.springframework.web.servlet.view.InternalResourceViewResolver#resolveViewName(java.lang.String, java.util.Locale), org.springframework.web.servlet.view.InternalResourceViewResolver#setCacheUnresolved(boolean), org.springframework.web.servlet.view.InternalResourceViewResolver#isCacheUnresolved(), org.springframework.web.servlet.view.InternalResourceViewResolver#setServletContext(javax.servlet.ServletContext), org.springframework.web.servlet.view.InternalResourceViewResolver#setApplicationContext(org.springframework.context.ApplicationContext), org.springframework.web.servlet.view.InternalResourceViewResolver#getApplicationContext(), org.springframework.web.servlet.view.InternalResourceViewResolver#wait(), org.springframework.web.servlet.view.InternalResourceViewResolver#wait(long), org.springframework.web.servlet.view.InternalResourceViewResolver#wait(long, int), org.springframework.web.servlet.view.InternalResourceViewResolver#equals(java.lang.Object), org.springframework.web.servlet.view.InternalResourceViewResolver#toString(), org.springframework.web.servlet.view.InternalResourceViewResolver#hashCode(), org.springframework.web.servlet.view.InternalResourceViewResolver#getClass(), org.springframework.web.servlet.view.InternalResourceViewResolver#notify(), org.springframework.web.servlet.view.InternalResourceViewResolver#notifyAll() |
Methods inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver | |
---|---|
org.springframework.web.servlet.view.UrlBasedViewResolver#setContentType(java.lang.String), org.springframework.web.servlet.view.UrlBasedViewResolver#setPrefix(java.lang.String), org.springframework.web.servlet.view.UrlBasedViewResolver#getOrder(), org.springframework.web.servlet.view.UrlBasedViewResolver#setAttributes(java.util.Properties), org.springframework.web.servlet.view.UrlBasedViewResolver#setOrder(int), org.springframework.web.servlet.view.UrlBasedViewResolver#setRequestContextAttribute(java.lang.String), org.springframework.web.servlet.view.UrlBasedViewResolver#setAttributesMap(java.util.Map), org.springframework.web.servlet.view.UrlBasedViewResolver#getAttributesMap(), org.springframework.web.servlet.view.UrlBasedViewResolver#setExposePathVariables(java.lang.Boolean), org.springframework.web.servlet.view.UrlBasedViewResolver#setSuffix(java.lang.String), org.springframework.web.servlet.view.UrlBasedViewResolver#setViewClass(java.lang.Class), org.springframework.web.servlet.view.UrlBasedViewResolver#setRedirectContextRelative(boolean), org.springframework.web.servlet.view.UrlBasedViewResolver#setRedirectHttp10Compatible(boolean), org.springframework.web.servlet.view.UrlBasedViewResolver#setViewNames([Ljava.lang.String;), org.springframework.web.servlet.view.UrlBasedViewResolver#clearCache(), org.springframework.web.servlet.view.UrlBasedViewResolver#setCache(boolean), org.springframework.web.servlet.view.UrlBasedViewResolver#isCache(), org.springframework.web.servlet.view.UrlBasedViewResolver#removeFromCache(java.lang.String, java.util.Locale), org.springframework.web.servlet.view.UrlBasedViewResolver#resolveViewName(java.lang.String, java.util.Locale), org.springframework.web.servlet.view.UrlBasedViewResolver#setCacheUnresolved(boolean), org.springframework.web.servlet.view.UrlBasedViewResolver#isCacheUnresolved(), org.springframework.web.servlet.view.UrlBasedViewResolver#setServletContext(javax.servlet.ServletContext), org.springframework.web.servlet.view.UrlBasedViewResolver#setApplicationContext(org.springframework.context.ApplicationContext), org.springframework.web.servlet.view.UrlBasedViewResolver#getApplicationContext(), org.springframework.web.servlet.view.UrlBasedViewResolver#wait(), org.springframework.web.servlet.view.UrlBasedViewResolver#wait(long), org.springframework.web.servlet.view.UrlBasedViewResolver#wait(long, int), org.springframework.web.servlet.view.UrlBasedViewResolver#equals(java.lang.Object), org.springframework.web.servlet.view.UrlBasedViewResolver#toString(), org.springframework.web.servlet.view.UrlBasedViewResolver#hashCode(), org.springframework.web.servlet.view.UrlBasedViewResolver#getClass(), org.springframework.web.servlet.view.UrlBasedViewResolver#notify(), org.springframework.web.servlet.view.UrlBasedViewResolver#notifyAll() |
Field Detail |
---|
public static final java.lang.String GSP_SUFFIX
public static final java.lang.String JSP_SUFFIX
protected GrailsConventionGroovyPageLocator groovyPageLocator
protected GroovyPagesTemplateEngine templateEngine
Constructor Detail |
---|
public GrailsViewResolver()
Method Detail |
---|
public long getCacheTimeout()
@Override protected org.springframework.web.servlet.View loadView(java.lang.String viewName, java.util.Locale locale)
public void setCacheTimeout(long cacheTimeout)
public void setGrailsApplication(GrailsApplication grailsApplication)
public void setGroovyPageLocator(GrailsConventionGroovyPageLocator groovyPageLocator)
public void setPluginManager(GrailsPluginManager pluginManager)
public void setTemplateEngine(GroovyPagesTemplateEngine templateEngine)
Groovy Documentation