限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CACHE_FILE_DIRECTORY |
static java.lang.String |
CACHE_VAR |
private ConfigDataComponent |
configDataComponent |
static java.lang.String |
CONTENT_CACHE |
private java.util.concurrent.locks.Lock |
lock |
protected org.apache.commons.logging.Log |
log |
private MetadataComponent |
metadataComponent |
private java.util.Map<java.lang.String,ParameterTypeHandler<?,?>> |
parameterTypeHandlerMap |
private SiteComponent |
siteComponent |
private TemplateComponent |
templateComponent |
构造器和说明 |
---|
TemplateCacheComponent() |
限定符和类型 | 方法和说明 |
---|---|
private boolean |
billingRequestParametersToModel(javax.servlet.http.HttpServletRequest request,
java.lang.String[] acceptParameters,
java.lang.Long id,
java.lang.Integer pageIndex,
java.util.Map<java.lang.String,ParameterType> parameterTypeMap,
SysSite site,
org.springframework.ui.ModelMap model) |
private <E,P> boolean |
billingValue(java.lang.String parameterName,
java.lang.String[] values,
ParameterType parameterType,
SysSite site,
org.springframework.ui.ModelMap model) |
private static boolean |
checkCacheFile(java.lang.String cacheFilePath,
int millisTime) |
void |
clear() |
private java.lang.String |
createCache(java.lang.String requestPath,
java.lang.String fullTemplatePath,
java.lang.String cachePath,
java.util.Locale locale,
int cacheMillisTime,
org.springframework.ui.ModelMap model) |
void |
deleteCachedFile(java.lang.String path)
删除缓存文件
|
private java.lang.String |
getCachedFilePath(java.lang.String path) |
java.lang.String |
getCachedPath(java.lang.String requestPath,
java.lang.String fullTemplatePath,
java.util.Locale locale,
int cacheMillisTime,
java.lang.String[] acceptParameters,
javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap modelMap)
返回缓存模板路径或者模板原路径
|
java.util.Map<java.lang.String,ParameterTypeHandler<?,?>> |
getParameterTypeHandlerMap() |
private static java.lang.String |
getRequestParametersString(javax.servlet.http.HttpServletRequest request,
java.lang.String[] acceptParameters) |
java.lang.String |
getViewName(org.springframework.web.servlet.LocaleResolver localeResolver,
SysSite site,
java.lang.Long id,
java.lang.Integer pageIndex,
java.lang.String requestPath,
java.lang.String body,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model) |
<E,P> void |
setParameterTypeHandlerMap(java.util.List<ParameterTypeHandler<E,P>> parameterTypeHandlerList) |
protected final org.apache.commons.logging.Log log
public static final java.lang.String CACHE_VAR
public static final java.lang.String CONTENT_CACHE
public static final java.lang.String CACHE_FILE_DIRECTORY
private final java.util.concurrent.locks.Lock lock
private SiteComponent siteComponent
private TemplateComponent templateComponent
private MetadataComponent metadataComponent
private ConfigDataComponent configDataComponent
private java.util.Map<java.lang.String,ParameterTypeHandler<?,?>> parameterTypeHandlerMap
public java.lang.String getViewName(org.springframework.web.servlet.LocaleResolver localeResolver, SysSite site, java.lang.Long id, java.lang.Integer pageIndex, java.lang.String requestPath, java.lang.String body, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
private boolean billingRequestParametersToModel(javax.servlet.http.HttpServletRequest request, java.lang.String[] acceptParameters, java.lang.Long id, java.lang.Integer pageIndex, java.util.Map<java.lang.String,ParameterType> parameterTypeMap, SysSite site, org.springframework.ui.ModelMap model)
private <E,P> boolean billingValue(java.lang.String parameterName, java.lang.String[] values, ParameterType parameterType, SysSite site, org.springframework.ui.ModelMap model)
public java.lang.String getCachedPath(java.lang.String requestPath, java.lang.String fullTemplatePath, java.util.Locale locale, int cacheMillisTime, java.lang.String[] acceptParameters, javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap modelMap)
requestPath
- fullTemplatePath
- locale
- cacheMillisTime
- acceptParameters
- request
- modelMap
- private static java.lang.String getRequestParametersString(javax.servlet.http.HttpServletRequest request, java.lang.String[] acceptParameters)
public void deleteCachedFile(java.lang.String path)
path
- private java.lang.String createCache(java.lang.String requestPath, java.lang.String fullTemplatePath, java.lang.String cachePath, java.util.Locale locale, int cacheMillisTime, org.springframework.ui.ModelMap model)
private static boolean checkCacheFile(java.lang.String cacheFilePath, int millisTime)
private java.lang.String getCachedFilePath(java.lang.String path)
public java.util.Map<java.lang.String,ParameterTypeHandler<?,?>> getParameterTypeHandlerMap()
@Autowired public <E,P> void setParameterTypeHandlerMap(java.util.List<ParameterTypeHandler<E,P>> parameterTypeHandlerList)
parameterTypeHandlerList
-