Package net.n2oapp.framework.mvc.cache
Class LifetimeClientCacheTemplate
- java.lang.Object
-
- net.n2oapp.framework.mvc.cache.ClientCacheTemplate
-
- net.n2oapp.framework.mvc.cache.LifetimeClientCacheTemplate
-
public class LifetimeClientCacheTemplate extends ClientCacheTemplate
Шаблон кэширования запросов по стратегии "Время жизни" (по умолчанию 1 минута).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.n2oapp.framework.mvc.cache.ClientCacheTemplate
ClientCacheTemplate.ClientCacheCallback
-
-
Constructor Summary
Constructors Constructor Description LifetimeClientCacheTemplate()LifetimeClientCacheTemplate(long lifetime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longgetLastModifiedFromServer(javax.servlet.http.HttpServletRequest req)Получить время последнего обновления данных запросаprotected voidsetLastModified(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, long lastModified)-
Methods inherited from class net.n2oapp.framework.mvc.cache.ClientCacheTemplate
execute, getLastModifiedFromClient, ifNotModifiedSince
-
-
-
-
Method Detail
-
getLastModifiedFromServer
protected long getLastModifiedFromServer(javax.servlet.http.HttpServletRequest req)
Description copied from class:ClientCacheTemplateПолучить время последнего обновления данных запроса- Specified by:
getLastModifiedFromServerin classClientCacheTemplate- Parameters:
req- Запрос- Returns:
- Время в миллесекундах
-
setLastModified
protected void setLastModified(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, long lastModified)- Overrides:
setLastModifiedin classClientCacheTemplate
-
-