/** * Construction */ public MessagesWebScript() { cache = new Cache(); cache.setNeverCache(false); cache.setMustRevalidate(true); cache.setLastModified(new Date()); cache.setMaxAge(6000L); }
if (cache.getIsPublic()) if (cache.getNeverCache()) if (cache.getMaxAge() != null && cache.getNeverCache() == false) cacheControl += (cacheControl.length() > 0 ? ", " : "") + " max-age=" + cache.getMaxAge(); if (cache.getMustRevalidate() && cache.getNeverCache() == false) if (cache.getETag() != null) String eTag = "\"" + cache.getETag() + "\""; res.setHeader("ETag", eTag); if (logger.isDebugEnabled()) if (cache.getLastModified() != null) res.setDateHeader("Last-Modified", cache.getLastModified().getTime()); if (logger.isDebugEnabled()) String lastModified = formatter.format(cache.getLastModified()); logger.debug("Cache - set response header Last-Modified: " + lastModified);
Cache cache = new Cache(); Element cacheElement = elem.element("cache"); if (cacheElement != null) cache.setNeverCache(neverBool); cache.setIsPublic(publicBool); cache.setMustRevalidate(revalidateBool);
WebScriptResponse res = createResponse(); Cache cache = new Cache(); cache.setNeverCache(true); res.setCache(cache);
Cache cache = new Cache(getDescription().getRequiredCache()); Map<String, Object> model = new HashMap<String, Object>(8, 1.0f);
Cache cache = new Cache(); Element cacheElement = elem.element("cache"); if (cacheElement != null) cache.setNeverCache(neverBool); cache.setIsPublic(publicBool); cache.setMustRevalidate(revalidateBool);
Cache cache = new Cache(); cache.setNeverCache(true); res.setCache(cache); res.setStatus(req.forceSuccessStatus() ? HttpServletResponse.SC_OK : statusCode);
Cache cache = new Cache(getDescription().getRequiredCache()); Map<String, Object> model = new HashMap<String, Object>(8, 1.0f);
Cache cache = new Cache(); Element cacheElement = elem.element("cache"); if (cacheElement != null) cache.setNeverCache(neverBool); cache.setIsPublic(publicBool); cache.setMustRevalidate(revalidateBool);
/** * Construction */ public MessagesWebScript() { cache = new Cache(); cache.setNeverCache(false); cache.setMustRevalidate(true); cache.setLastModified(new Date()); cache.setMaxAge(6000L); }
if (cache.getIsPublic()) if (cache.getNeverCache()) if (cache.getMaxAge() != null && cache.getNeverCache() == false) cacheControl += (cacheControl.length() > 0 ? ", " : "") + " max-age=" + cache.getMaxAge(); if (cache.getMustRevalidate() && cache.getNeverCache() == false) if (cache.getETag() != null) String eTag = "\"" + cache.getETag() + "\""; res.setHeader("ETag", eTag); if (logger.isDebugEnabled()) if (cache.getLastModified() != null) res.setDateHeader("Last-Modified", cache.getLastModified().getTime()); if (logger.isDebugEnabled()) String lastModified = formatter.format(cache.getLastModified()); logger.debug("Cache - set response header Last-Modified: " + lastModified);
Cache cache = new Cache(); cache.setNeverCache(true); res.setCache(cache); res.setStatus(req.forceSuccessStatus() ? HttpServletResponse.SC_OK : statusCode);
Cache cache = new Cache(getDescription().getRequiredCache()); Map<String, Object> model = new HashMap<String, Object>(8, 1.0f);
if (cache.getIsPublic()) if (cache.getNeverCache()) if (cache.getMaxAge() != null && cache.getNeverCache() == false) cacheControl += (cacheControl.length() > 0 ? ", " : "") + " max-age=" + cache.getMaxAge(); if (cache.getMustRevalidate() && cache.getNeverCache() == false) if (cache.getETag() != null) String eTag = "\"" + cache.getETag() + "\""; res.setHeader("ETag", eTag); if (logger.isDebugEnabled()) if (cache.getLastModified() != null) res.setDateHeader("Last-Modified", cache.getLastModified().getTime()); if (logger.isDebugEnabled()) String lastModified = formatter.format(cache.getLastModified()); logger.debug("Cache - set response header Last-Modified: " + lastModified);
Cache cache = new Cache(getDescription().getRequiredCache()); Map<String, Object> model = executeImpl(req, status, cache); if (model == null)
Cache cache = new Cache(getDescription().getRequiredCache()); Map<String, Object> model = executeImpl(req, status, cache); if (model == null)
Cache cache = new Cache(getDescription().getRequiredCache()); Map<String, Object> model = executeImpl(req, status, cache); if (model == null)