AbstractUrlBasedView
|
buildView(String viewName)
Creates a new View instance of the specified view class and configures it.
|
boolean
|
canHandle(String viewName, Locale locale)
Indicates whether or not this ViewResolver can
handle the supplied view name.
|
View
|
createView(String viewName, Locale locale)
Overridden to implement check for "redirect:" prefix.
|
Map<String, Object>
|
getAttributesMap()
Allow Map access to the static attributes for views returned by
this resolver, with the option to add or override specific entries.
|
Object
|
getCacheKey(String viewName, Locale locale)
This implementation returns just the view name,
as this ViewResolver doesn't support localized resolution.
|
String
|
getContentType()
Return the content type for all views, if any.
|
int
|
getOrder()
|
String
|
getPrefix()
Return the prefix that gets prepended to view names when building a URL.
|
String
|
getRequestContextAttribute()
Return the name of the RequestContext attribute for all views, if any.
|
String
|
getSuffix()
Return the suffix that gets appended to view names when building a URL.
|
Class
|
getViewClass()
Return the view class to be used to create views.
|
String[]
|
getViewNames()
Return the view names (or name patterns) that can be handled by this
ViewResolver .
|
void
|
initApplicationContext()
Subclasses can override this for custom initialization behavior.
|
boolean
|
isRedirectContextRelative()
Return whether to interpret a given redirect URL that starts with a
slash ("/") as relative to the current ServletContext, i.e.
|
boolean
|
isRedirectHttp10Compatible()
Return whether redirects should stay compatible with HTTP 1.0 clients.
|
View
|
loadView(String viewName, Locale locale)
Delegates to buildView for creating a new instance of the
specified view class, and applies the following Spring lifecycle methods
(as supported by the generic Spring bean factory):
- ApplicationContextAware's
setApplicationContext
- InitializingBean's
afterPropertiesSet
|
Class
|
requiredViewClass()
Return the required type of view for this resolver.
|
void
|
setAttributes(Properties props)
Set static attributes from a java.util.Properties object,
for all views returned by this resolver.
|
void
|
setAttributesMap(Map<String, ?> attributes)
Set static attributes from a Map, for all views returned by this resolver.
|
void
|
setContentType(String contentType)
Set the content type for all views.
|
void
|
setOrder(int order)
|
void
|
setPrefix(String prefix)
Set the prefix that gets prepended to view names when building a URL.
|
void
|
setRedirectContextRelative(boolean redirectContextRelative)
Set whether to interpret a given redirect URL that starts with a
slash ("/") as relative to the current ServletContext, i.e.
|
void
|
setRedirectHttp10Compatible(boolean redirectHttp10Compatible)
Set whether redirects should stay compatible with HTTP 1.0 clients.
|
void
|
setRequestContextAttribute(String requestContextAttribute)
Set the name of the RequestContext attribute for all views.
|
void
|
setSuffix(String suffix)
Set the suffix that gets appended to view names when building a URL.
|
void
|
setViewClass(Class viewClass)
Set the view class that should be used to create views.
|
void
|
setViewNames(String[] viewNames)
Set the view names (or name patterns) that can be handled by this
ViewResolver .
|