org.springframework.extensions.surf.mvc
Class RegionView
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.springframework.web.servlet.view.AbstractUrlBasedView
org.springframework.extensions.surf.mvc.AbstractWebFrameworkView
org.springframework.extensions.surf.mvc.RegionView
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.View
public class RegionView
- extends AbstractWebFrameworkView
View implementation for a Surf page region
URLs are expected to be invoked as shown:
///
Most commonly, these are:
regionId -> the id of the region (i.e. 'footer')
scopeId -> the scope of the region (i.e. 'page')
sourceId -> the id of the template or page instance (i.e. 'home')
-> 'global' if site scoped
The region is executed, along with its chrome.
If a component is contained in the region, it is also executed.
- Author:
- muzquiano
Fields inherited from class org.springframework.web.servlet.view.AbstractView |
DEFAULT_CONTENT_TYPE |
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
Fields inherited from interface org.springframework.web.servlet.View |
RESPONSE_STATUS_ATTRIBUTE |
Method Summary |
protected void |
executePageMapper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map model)
Execute the configured page mapper
This will populate request context with information about
how to render, based on the incoming URL |
protected void |
exposeForwardRequestAttributes(javax.servlet.http.HttpServletRequest request)
Expose forward request attributes. |
protected void |
renderMergedOutputModel(Map model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Methods inherited from class org.springframework.web.servlet.view.AbstractUrlBasedView |
afterPropertiesSet, checkResource, getUrl, isUrlRequired, setUrl, toString |
Methods inherited from class org.springframework.web.servlet.view.AbstractView |
addStaticAttribute, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute, writeToResponse |
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext |
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
RegionView
public RegionView(WebFrameworkServiceRegistry serviceRegistry)
renderMergedOutputModel
protected void renderMergedOutputModel(Map model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- Specified by:
renderMergedOutputModel
in class org.springframework.web.servlet.view.AbstractView
- Throws:
Exception
exposeForwardRequestAttributes
protected void exposeForwardRequestAttributes(javax.servlet.http.HttpServletRequest request)
- Expose forward request attributes.
- Parameters:
request
- the request
executePageMapper
protected void executePageMapper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map model)
throws PageMapperException
- Execute the configured page mapper
This will populate request context with information about
how to render, based on the incoming URL
- Parameters:
request
- the requestresponse
- the responsemodel
- the model
- Throws:
PageMapperException
Copyright © 2009 SpringSource, Inc. All Rights Reserved.