info.magnolia.module.cache.browsercachepolicy
Class AbstractVoterBased

java.lang.Object
  extended by 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$

Constructor Summary
AbstractVoterBased()
           
 
Method Summary
 BrowserCachePolicyResult canCacheOnClient(CachePolicyResult cachePolicyResult)
           
protected abstract  BrowserCachePolicyResult getPositiveVoteResult(CachePolicyResult cachePolicyResult)
           
 info.magnolia.voting.voters.VoterSet getVoters()
           
 void setVoters(info.magnolia.voting.voters.VoterSet voters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractVoterBased

public AbstractVoterBased()
Method Detail

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-2012 Magnolia International Ltd.. All Rights Reserved.