info.magnolia.module.cache.executor
Class AbstractExecutor

java.lang.Object
  extended by info.magnolia.module.cache.executor.AbstractExecutor
All Implemented Interfaces:
CachePolicyExecutor
Direct Known Subclasses:
Bypass, SetExpirationHeaders, Store, UseCache

public abstract class AbstractExecutor
extends Object
implements CachePolicyExecutor

The cache configuration is passed to the executor.

Version:
$Revision$ ($Author$)
Author:
pbracher

Constructor Summary
AbstractExecutor()
           
 
Method Summary
 CacheConfiguration getCacheConfiguration()
           
protected  boolean ifModifiedSince(javax.servlet.http.HttpServletRequest request, long cacheStorageTimestamp)
          Checks if server cache is newer than the client cache.
 void setCacheConfiguration(CacheConfiguration cacheConfiguration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.magnolia.module.cache.CachePolicyExecutor
processCacheRequest
 

Constructor Detail

AbstractExecutor

public AbstractExecutor()
Method Detail

getCacheConfiguration

public CacheConfiguration getCacheConfiguration()

setCacheConfiguration

public void setCacheConfiguration(CacheConfiguration cacheConfiguration)
Specified by:
setCacheConfiguration in interface CachePolicyExecutor

ifModifiedSince

protected boolean ifModifiedSince(javax.servlet.http.HttpServletRequest request,
                                  long cacheStorageTimestamp)
Checks if server cache is newer than the client cache.

Parameters:
request - The servlet request we are processing
Returns:
boolean true if the server resource is newer


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.