public class GroovyPageViewResolver extends InternalResourceViewResolver implements GrailsViewResolver
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 |
Constructor and description |
---|
GroovyPageViewResolver
() Constructor. |
GroovyPageViewResolver
(GroovyPagesTemplateEngine templateEngine, GrailsConventionGroovyPageLocator groovyPageLocator) |
Type Params | Return Type | Name and description |
---|---|---|
|
public View |
call() |
|
public void |
clearCache() |
|
protected View |
createFallbackView(java.lang.String viewName) |
|
protected View |
createGrailsView(java.lang.String viewName) |
|
protected View |
createJstlView(java.lang.String viewName) |
|
public long |
getCacheTimeout() |
|
public boolean |
isAllowGrailsViewCaching() |
|
protected View |
loadView(java.lang.String viewName, java.util.Locale locale) |
|
protected java.lang.String |
resolveCurrentControllerKeyPrefixes(boolean absolute)
|
|
public void |
setAllowGrailsViewCaching(boolean allowGrailsViewCaching) |
|
public void |
setCacheTimeout(long cacheTimeout) |
|
public void |
setGroovyPageLocator(GrailsConventionGroovyPageLocator groovyPageLocator) |
|
public void |
setResolveJspView(boolean resolveJspView) |
|
public void |
setTemplateEngine(GroovyPagesTemplateEngine templateEngine) |
Constructor.