public class PageViewResolver extends AbstractWebFrameworkViewResolver
useNullSentinelFORWARD_URL_PREFIX, REDIRECT_URL_PREFIX| Constructor and Description |
|---|
PageViewResolver()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.servlet.view.AbstractUrlBasedView |
buildView(String viewName)
Constructs a new
PageView object using and sets it's URL to the current view name
providing that a Page object is stored on the current RequestContext
object. |
protected boolean |
canHandle(String viewName,
Locale locale)
Determines whether or not this view resolver can build a view to be displayed.
|
protected Map<String,String> |
getTokens(String viewName)
Retrieves the tokens matched against the configured URI templates for the supplied view name.
|
addPrefix, addReqParm, generateUriTemplateListIndexFromConfig, getBeanName, getModelObjectService, getServiceRegistry, getTemplatesContainer, getUriTemplateListIndex, getUrlHelperFactory, getWebframeworkConfigElement, getWebFrameworkRenderService, getWebFrameworkResourceService, getWebFrameworkServiceRegistry, lookupPage, matchUriTemplate, processView, setBeanName, setModelObjectService, setServiceRegistry, setTemplatesContainer, setUriTemplateIndex, setUrlHelperFactory, setWebframeworkConfigElement, setWebFrameworkRenderService, setWebFrameworkResourceServiceclearCache, removeFromCache, resolveViewNamecreateView, getAttributesMap, getCacheKey, getContentType, getExposePathVariables, getOrder, getPrefix, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, initApplicationContext, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, requiredViewClass, setAttributes, setAttributesMap, setContentType, setExposePathVariables, setOrder, setPrefix, setRedirectContextRelative, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNamesgetCacheLimit, isCache, isCacheUnresolved, setCache, setCacheLimit, setCacheUnresolvedgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprotected boolean canHandle(String viewName, Locale locale)
Determines whether or not this view resolver can build a view to be displayed. This method will
return true providing one of the following criteria are met:
If a page id is found then it will be used to attempt to load a page. If a page can be loaded it
will be stored in the current RequestContext object to that the associated view can
retrieve it. Finally, if the view name maps to a template uri then the tokens in the uri will also
be saved into the current RequestContext.
canHandle in class AbstractWebFrameworkViewResolverviewName - The view name to check.locale - The current locale.protected Map<String,String> getTokens(String viewName)
Retrieves the tokens matched against the configured URI templates for the supplied view name.
viewName - The view name to map tokens from.protected org.springframework.web.servlet.view.AbstractUrlBasedView buildView(String viewName)
PageView object using and sets it's URL to the current view name
providing that a Page object is stored on the current RequestContext
object.buildView in class org.springframework.web.servlet.view.UrlBasedViewResolverviewName - The name of the view to build.Copyright © 2005–2016 Alfresco Software. All rights reserved.