info.magnolia.module.cache.browsercachepolicy
Class AbstractVoterBased
java.lang.Object
info.magnolia.module.cache.browsercachepolicy.AbstractVoterBased
- All Implemented Interfaces:
- BrowserCachePolicy
- Direct Known Subclasses:
- FixedDuration, Never
public abstract class AbstractVoterBased
- extends Object
- implements BrowserCachePolicy
Uses a VoterSet
to decided if the file should be cached in the browser. If no voters are configured it means that the content can be cached.
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractVoterBased
public AbstractVoterBased()
getVoters
public VoterSet getVoters()
setVoters
public void setVoters(VoterSet voters)
canCacheOnClient
public BrowserCachePolicyResult canCacheOnClient(CachePolicyResult cachePolicyResult)
- Specified by:
canCacheOnClient
in interface BrowserCachePolicy
getPositiveVoteResult
protected abstract BrowserCachePolicyResult getPositiveVoteResult(CachePolicyResult cachePolicyResult)
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.