|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.filters.CachingFilter.Attributes
public class CachingFilter.Attributes
A data structure used to hold the cache validity period attributes.
Fields in this data structure are used to control the TTL
for cached files, or the interval at which the cache
directory is to be purged.
| Field Summary | |
|---|---|
static boolean |
CLEAN_BASE_DIRECTORY
The value to indicate that the cleanBaseDirectory is
to be enabled. |
private boolean |
cleanBaseDirectory
A flag that indicates whether the CachingFilter.baseDirectory should
be cleaned on application start or not. |
static boolean |
NO_CLEAN_BASE_DIRECTORY
The value to indicate that the cleanBaseDirectory is to
be disabled. |
static int |
NO_PURGE_INTERVAL
The value to indicate that the purgeInterval
variable should not be considered. |
static int |
NO_TIME_TO_LIVE
The value to indicate that the timeToLive
variable should not be considered. |
private int |
purgeInterval
The time interval at which the cached files must be automatically purged. |
private CachingFilter.PurgeTime |
purgeTime
The time of day at which the cached files must be automatically purged. |
private int |
timeToLive
The time in seconds till which an individual cache file must persist. |
| Constructor Summary | |
|---|---|
protected |
CachingFilter.Attributes()
Default constructor. |
| Method Summary | |
|---|---|
private void |
initCleanBaseDirectory()
Initialise the cleanBaseDirectory field. |
private void |
initPurgeInterval()
Initialise the purgeInterval field. |
private void |
initPurgeTime()
Initialise the purgeTime field. |
private void |
initTimeToLive()
Initialise the timeToLive field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean CLEAN_BASE_DIRECTORY
cleanBaseDirectory is
to be enabled.
public static final boolean NO_CLEAN_BASE_DIRECTORY
cleanBaseDirectory is to
be disabled.
public static final int NO_TIME_TO_LIVE
timeToLive
variable should not be considered.
public static final int NO_PURGE_INTERVAL
purgeInterval
variable should not be considered.
private boolean cleanBaseDirectory
CachingFilter.baseDirectory should
be cleaned on application start or not.
private int timeToLive
private int purgeInterval
private CachingFilter.PurgeTime purgeTime
| Constructor Detail |
|---|
protected CachingFilter.Attributes()
purgeTime.
| Method Detail |
|---|
private void initCleanBaseDirectory()
cleanBaseDirectory field. Set to NO_CLEAN_BASE_DIRECTORY if no configuration was found, or if
the value is the same as NO_CLEAN_BASE_DIRECTORY
private void initTimeToLive()
timeToLive field. Set to NO_TIME_TO_LIVE if no configuration was found, or if the value
is the same as NO_TIME_TO_LIVE.
private void initPurgeInterval()
purgeInterval field. Set to NO_PURGE_INTERVAL if no configuration was found, or if the
value is the same as NO_PURGE_INTERVAL.
private void initPurgeTime()
purgeTime field. Set to CachingFilter.NO_PURGE_TIME if no configuration was
found, or if the * is the same as CachingFilter.NO_PURGE_TIME.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||