public class GroovyPageViewResolver extends InternalResourceViewResolver
Evaluates the existance of a view for different extensions choosing which one to delegate to.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
GSP_SUFFIX |
|
static java.lang.String |
JSP_SUFFIX |
|
protected GrailsConventionGroovyPageLocator |
groovyPageLocator |
|
protected GroovyPagesTemplateEngine |
templateEngine |
Type | Name and description |
---|---|
boolean |
allowGrailsViewCaching |
long |
cacheTimeout |
Constructor and description |
---|
GroovyPageViewResolver
() Constructor. |
GroovyPageViewResolver
(GroovyPagesTemplateEngine templateEngine, GrailsConventionGroovyPageLocator groovyPageLocator) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
clearCache() |
|
protected View |
createFallbackView(java.lang.String viewName) |
|
protected View |
createGrailsView(java.lang.String viewName) |
|
protected View |
createJstlView(java.lang.String viewName) |
|
long |
getCacheTimeout() |
|
boolean |
isAllowGrailsViewCaching() |
|
protected View |
loadView(java.lang.String viewName, java.util.Locale locale) |
|
protected java.lang.String |
resolveCurrentControllerKeyPrefixes(boolean absolute) @return prefix for cache key that contains current controller's context (currently plugin and namespace) |
|
void |
setAllowGrailsViewCaching(boolean allowGrailsViewCaching) |
|
void |
setCacheTimeout(long cacheTimeout) |
|
void |
setGroovyPageLocator(GrailsConventionGroovyPageLocator groovyPageLocator) |
|
void |
setResolveJspView(boolean resolveJspView) |
|
void |
setTemplateEngine(GroovyPagesTemplateEngine templateEngine) |
Constructor.