类 TemplateCacheComponent
java.lang.Object
com.publiccms.logic.component.template.TemplateCacheComponent
- 所有已实现的接口:
Cache
TemplateCacheComponent 动态模板缓存组件
-
字段概要
字段修饰符和类型字段说明static final Stringstatic final Stringprivate ConfigDataComponentstatic final Stringprivate final Lockprotected final org.apache.commons.logging.Logprivate MetadataComponentprivate Map<String,ParameterTypeHandler<?, ?>> private SiteComponentprivate TemplateComponent -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private booleanbillingRequestParametersToModel(jakarta.servlet.http.HttpServletRequest request, String[] acceptParameters, Long id, Integer pageIndex, Map<String, ParameterType> parameterTypeMap, SysSite site, org.springframework.ui.ModelMap model) private <E,P> boolean billingValue(String parameterName, String[] values, ParameterType parameterType, SysSite site, org.springframework.ui.ModelMap model) private static booleancheckCacheFile(String cacheFilePath, int millisTime) voidclear()private StringcreateCache(String requestPath, String fullTemplatePath, String cachePath, Locale locale, int cacheMillisTime, org.springframework.ui.ModelMap model) voiddeleteCachedFile(String path) 删除缓存文件private StringgetCachedFilePath(String path) getCachedPath(String requestPath, String fullTemplatePath, Locale locale, int cacheMillisTime, String[] acceptParameters, jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap modelMap) 返回缓存模板路径或者模板原路径Map<String,ParameterTypeHandler<?, ?>> private static StringgetRequestParametersString(jakarta.servlet.http.HttpServletRequest request, Locale locale, String[] acceptParameters) getViewName(org.springframework.web.servlet.LocaleResolver localeResolver, SysSite site, Long id, Integer pageIndex, String requestPath, String body, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model) <E,P> void setParameterTypeHandlerMap(List<ParameterTypeHandler<E, P>> parameterTypeHandlerList)
-
字段详细资料
-
log
protected final org.apache.commons.logging.Log log -
CACHE_VAR
- 另请参阅:
-
CONTENT_CACHE
- 另请参阅:
-
CACHE_FILE_DIRECTORY
- 另请参阅:
-
lock
-
siteComponent
-
templateComponent
-
metadataComponent
-
configDataComponent
-
parameterTypeHandlerMap
-
-
构造器详细资料
-
TemplateCacheComponent
public TemplateCacheComponent()
-
-
方法详细资料
-
getViewName
public String getViewName(org.springframework.web.servlet.LocaleResolver localeResolver, SysSite site, Long id, Integer pageIndex, String requestPath, String body, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model) -
billingRequestParametersToModel
-
billingValue
private <E,P> boolean billingValue(String parameterName, String[] values, ParameterType parameterType, SysSite site, org.springframework.ui.ModelMap model) -
getCachedPath
public String getCachedPath(String requestPath, String fullTemplatePath, Locale locale, int cacheMillisTime, String[] acceptParameters, jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap modelMap) 返回缓存模板路径或者模板原路径- 参数:
requestPath-fullTemplatePath-locale-cacheMillisTime-acceptParameters-request-modelMap-- 返回:
- cached path
-
getRequestParametersString
-
deleteCachedFile
删除缓存文件- 参数:
path-
-
clear
public void clear() -
createCache
-
checkCacheFile
-
getCachedFilePath
-
getParameterTypeHandlerMap
- 返回:
- the parameterTypeHandlerMap
-
setParameterTypeHandlerMap
@Autowired public <E,P> void setParameterTypeHandlerMap(List<ParameterTypeHandler<E, P>> parameterTypeHandlerList) - 参数:
parameterTypeHandlerList-
-