|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bowstreet.webapp.util.CacheControl
public class CacheControl
Class to hold cache information for a Page, Method or Action List. This is used to enable or disable output caching.
Constructor Summary | |
---|---|
CacheControl(long timeLimit,
boolean browserDependent)
Construct from the specified values. |
Method Summary | |
---|---|
boolean |
getBrowserDependent()
Gets the browser dependency |
java.lang.String |
getCacheKeyMethod()
Gets the cache key method name. |
long |
getTimeLimit()
Gets caching time limit - 0 means no caching. |
void |
setBrowserDependent(boolean browserDependent)
Sets the browser dependency |
void |
setCacheKeyMethod(java.lang.String cacheKeyMethod)
Sets the cache key method name. |
void |
setTimeLimit(long time)
Sets the time limit - 0 means don't cache |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheControl(long timeLimit, boolean browserDependent)
timeLimit
- The length of time in milliseconds, which this entry is valid for.browserDependent
- true if Browser type should create a separate cache entry, false to ignore Browser type.Method Detail |
---|
public boolean getBrowserDependent()
public java.lang.String getCacheKeyMethod()
public long getTimeLimit()
public void setBrowserDependent(boolean browserDependent)
browserDependent
- true if Browser type should create a separate cache entry, false to ignore Browser type.public void setCacheKeyMethod(java.lang.String cacheKeyMethod)
cacheKeyMethod
- The name of the generated method to call in the model that builds the cache key using the specified actions (from the builder).public void setTimeLimit(long time)
time
- The length of time in milliseconds, which this entry is valid for. 0 means don't cache
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |