public class CrafterPageView
extends org.springframework.web.servlet.view.AbstractView
implements org.craftercms.core.util.cache.CachingAwareObject, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected Long |
cachingTime |
static String |
DEFAULT_CHARSET |
static String |
DEFAULT_CONTENT_TYPE |
protected org.springframework.web.servlet.ViewResolver |
delegatedViewResolver |
protected boolean |
disableVariableRestrictions |
protected Object |
key |
static String |
KEY_CONTENT_MODEL |
static String |
KEY_MODEL
Deprecated.
|
protected Locale |
locale |
protected String |
mimeTypeXPathQuery |
protected SiteItem |
page |
static String |
PAGE_URL_ATTRIBUTE_NAME |
protected String |
pageViewNameXPathQuery |
protected String |
scope |
protected List<Script> |
scripts |
Constructor and Description |
---|
CrafterPageView() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected Map<String,Object> |
createScriptVariables(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map<String,Object> model) |
protected void |
executeScript(Script script,
Map<String,Object> scriptVariables) |
Long |
getCachingTime() |
Object |
getKey() |
protected String |
getMimeType() |
SiteItem |
getPage() |
protected String |
getPageViewName() |
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 |
setKey(Object key) |
void |
setLocale(Locale locale) |
void |
setMimeTypeXPathQuery(String mimeTypeXPathQuery) |
void |
setPage(SiteItem page) |
void |
setPageViewNameXPathQuery(String pageViewNameXPathQuery) |
void |
setScope(String scope) |
void |
setScripts(List<Script> scripts) |
String |
toString() |
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public static final String PAGE_URL_ATTRIBUTE_NAME
public static final String DEFAULT_CONTENT_TYPE
public static final String DEFAULT_CHARSET
@Deprecated public static final String KEY_MODEL
public static final String KEY_CONTENT_MODEL
protected transient String scope
protected transient Object key
protected transient Long cachingTime
protected SiteItem page
protected Locale locale
protected String pageViewNameXPathQuery
protected String mimeTypeXPathQuery
protected org.springframework.web.servlet.ViewResolver delegatedViewResolver
protected boolean disableVariableRestrictions
public SiteItem getPage()
public void setPage(SiteItem page)
public void setLocale(Locale locale)
public void setPageViewNameXPathQuery(String pageViewNameXPathQuery)
public void setMimeTypeXPathQuery(String mimeTypeXPathQuery)
public void setDelegatedViewResolver(org.springframework.web.servlet.ViewResolver delegatedViewResolver)
public String getScope()
getScope
in interface org.craftercms.core.util.cache.CachingAwareObject
public void setScope(String scope)
setScope
in interface org.craftercms.core.util.cache.CachingAwareObject
public Object getKey()
getKey
in interface org.craftercms.core.util.cache.CachingAwareObject
public void setKey(Object key)
setKey
in interface org.craftercms.core.util.cache.CachingAwareObject
public Long getCachingTime()
getCachingTime
in interface org.craftercms.core.util.cache.CachingAwareObject
public void setCachingTime(Long cachingTime)
setCachingTime
in interface org.craftercms.core.util.cache.CachingAwareObject
public void setDisableVariableRestrictions(boolean disableVariableRestrictions)
public String toString()
toString
in class org.springframework.web.servlet.view.AbstractView
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected void renderMergedOutputModel(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
renderMergedOutputModel
in class org.springframework.web.servlet.view.AbstractView
Exception
protected void executeScript(Script script, Map<String,Object> scriptVariables) throws Exception
Exception
protected Map<String,Object> createScriptVariables(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map<String,Object> model)
protected String getPageViewName() throws RenderingException
RenderingException
protected String getMimeType()
Copyright © 2023 CrafterCMS. All rights reserved.