org.springbyexample.web.servlet.view.tiles2
Class TilesUrlBasedViewResolver
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.springbyexample.web.servlet.view.tiles2.TilesUrlBasedViewResolver
- All Implemented Interfaces:
- ApplicationContextAware, Ordered, ServletContextAware, ViewResolver
public class TilesUrlBasedViewResolver
- extends UrlBasedViewResolver
Extends UrlBasedViewResolver
and provides
some properties to set tiles values if the view is a
DynamicTilesView
.
- Author:
- David Winterfeldt
Methods inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver |
canHandle, createView, getAttributesMap, getCacheKey, getContentType, getOrder, getPrefix, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, initApplicationContext, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, requiredViewClass, setAttributes, setAttributesMap, setContentType, setOrder, setPrefix, setRedirectContextRelative, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNames |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TilesUrlBasedViewResolver
public TilesUrlBasedViewResolver()
setTilesDefinitionName
public void setTilesDefinitionName(String tilesDefinitionName)
- Main template name.
setTilesBodyAttributeName
public void setTilesBodyAttributeName(String tilesBodyAttributeName)
- Tiles body attribute name.
setTilesDefinitionDelimiter
public void setTilesDefinitionDelimiter(String tilesDefinitionDelimiter)
- Sets Tiles definition delimiter.
buildView
protected AbstractUrlBasedView buildView(String viewName)
throws Exception
- Does everything the
UrlBasedViewResolver
does and
also sets some Tiles specific values on the view.
- Overrides:
buildView
in class UrlBasedViewResolver
- Parameters:
viewName
- the name of the view to build
- Returns:
- the View instance
- Throws:
Exception
- if the view couldn't be resolved- See Also:
UrlBasedViewResolver.loadView(String, java.util.Locale)
Copyright © 2008 Spring by Example. All Rights Reserved.