Package org.craftercms.engine.view
Class CrafterPageView
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.craftercms.engine.view.CrafterPageView
- All Implemented Interfaces:
org.craftercms.core.util.cache.CachingAwareObject
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
,org.springframework.web.context.ServletContextAware
,org.springframework.web.servlet.View
- Direct Known Subclasses:
UserAgentAwareCrafterPageView
public class CrafterPageView
extends org.springframework.web.servlet.view.AbstractView
implements org.craftercms.core.util.cache.CachingAwareObject, org.springframework.beans.factory.InitializingBean
- Author:
- Alfonso Vásquez
-
Field Summary
Modifier and TypeFieldDescriptionprotected Long
static final String
static final String
protected org.springframework.web.servlet.ViewResolver
protected boolean
protected Object
static final String
static final String
Deprecated.protected Locale
protected String
protected SiteItem
static final String
protected String
protected String
Fields inherited from interface org.springframework.web.servlet.View
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createScriptVariables
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map<String, Object> model) protected void
executeScript
(Script script, Map<String, Object> scriptVariables) getKey()
protected String
getPage()
protected String
getScope()
protected void
renderActualView
(String pageViewName, Map<String, Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected void
renderMergedOutputModel
(Map<String, Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) void
setCachingTime
(Long cachingTime) void
setDelegatedViewResolver
(org.springframework.web.servlet.ViewResolver delegatedViewResolver) void
setDisableVariableRestrictions
(boolean disableVariableRestrictions) void
void
void
setMimeTypeXPathQuery
(String mimeTypeXPathQuery) void
void
setPageViewNameXPathQuery
(String pageViewNameXPathQuery) void
void
setScripts
(List<Script> scripts) toString()
Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, 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, obtainApplicationContext, requiredContextClass, setApplicationContext
-
Field Details
-
PAGE_URL_ATTRIBUTE_NAME
- See Also:
-
DEFAULT_CONTENT_TYPE
- See Also:
-
DEFAULT_CHARSET
- See Also:
-
KEY_MODEL
Deprecated.- See Also:
-
KEY_CONTENT_MODEL
- See Also:
-
scope
-
key
-
cachingTime
-
page
-
locale
-
pageViewNameXPathQuery
-
mimeTypeXPathQuery
-
scripts
-
delegatedViewResolver
protected org.springframework.web.servlet.ViewResolver delegatedViewResolver -
disableVariableRestrictions
protected boolean disableVariableRestrictions
-
-
Constructor Details
-
CrafterPageView
public CrafterPageView()
-
-
Method Details
-
getPage
-
setPage
-
setLocale
-
setPageViewNameXPathQuery
-
setMimeTypeXPathQuery
-
setScripts
-
setDelegatedViewResolver
public void setDelegatedViewResolver(org.springframework.web.servlet.ViewResolver delegatedViewResolver) -
getScope
- Specified by:
getScope
in interfaceorg.craftercms.core.util.cache.CachingAwareObject
-
setScope
- Specified by:
setScope
in interfaceorg.craftercms.core.util.cache.CachingAwareObject
-
getKey
- Specified by:
getKey
in interfaceorg.craftercms.core.util.cache.CachingAwareObject
-
setKey
- Specified by:
setKey
in interfaceorg.craftercms.core.util.cache.CachingAwareObject
-
getCachingTime
- Specified by:
getCachingTime
in interfaceorg.craftercms.core.util.cache.CachingAwareObject
-
setCachingTime
- Specified by:
setCachingTime
in interfaceorg.craftercms.core.util.cache.CachingAwareObject
-
setDisableVariableRestrictions
public void setDisableVariableRestrictions(boolean disableVariableRestrictions) -
toString
- Overrides:
toString
in classorg.springframework.web.servlet.view.AbstractView
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
renderMergedOutputModel
protected void renderMergedOutputModel(Map<String, Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception- Specified by:
renderMergedOutputModel
in classorg.springframework.web.servlet.view.AbstractView
- Throws:
Exception
-
executeScript
- Throws:
Exception
-
createScriptVariables
-
getPageViewName
- Throws:
RenderingException
-
getMimeType
-
renderActualView
protected void renderActualView(String pageViewName, Map<String, Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception- Throws:
Exception
-