@groovy.transform.CompileStatic class SmartViewResolver extends java.lang.Object
Spring's default view resolving mechanism only accepts the view name and locale, this forces you to code around its limitations when you want to add intelligent features such as version and mime type awareness. This aims to fix that whilst reducing complexity
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
OBJECT_TEMPLATE_NAME |
Type | Name and description |
---|---|
grails.config.Config |
configuration |
java.lang.String |
contentType |
org.springframework.web.servlet.LocaleResolver |
localeResolver |
org.springframework.web.servlet.View |
objectView |
java.lang.String |
suffix |
ResolvableGroovyTemplateEngine |
templateEngine |
java.lang.Class<? extends GenericGroovyTemplateView> |
viewClass |
Constructor and description |
---|
SmartViewResolver
(ResolvableGroovyTemplateEngine templateEngine) |
SmartViewResolver
(ResolvableGroovyTemplateEngine templateEngine, java.lang.String suffix, java.lang.String contentType) |
Type | Name and description |
---|---|
protected java.util.List |
buildQualifiers(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.View |
resolveView(java.lang.String viewName, java.util.Locale locale) |
org.springframework.web.servlet.View |
resolveView(java.lang.String viewName, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.View |
resolveView(java.lang.Class type, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.View |
resolveView(java.lang.Class type, java.util.Locale locale) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Groovy Documentation