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 java.lang.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 info.magnolia.voting.voters.VoterSet getVoters()
setVoters
public void setVoters(info.magnolia.voting.voters.VoterSet voters)
canCacheOnClient
public BrowserCachePolicyResult canCacheOnClient(CachePolicyResult cachePolicyResult)
- Specified by:
canCacheOnClient
in interface BrowserCachePolicy
getPositiveVoteResult
protected abstract BrowserCachePolicyResult getPositiveVoteResult(CachePolicyResult cachePolicyResult)
Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.