org.lobobrowser.settings
Class CacheSettings

java.lang.Object
  extended by org.lobobrowser.settings.CacheSettings
All Implemented Interfaces:
java.io.Serializable

public class CacheSettings
extends java.lang.Object
implements java.io.Serializable

Browser cache settings. This is a singleton class with an instance obtained by calling getInstance().

See Also:
Serialized Form

Method Summary
 int getDefaultCacheExpirationOffset()
           
static CacheSettings getInstance()
          Gets the class singleton.
 int getMaxRAMCacheSize()
           
 void resetDefaults()
           
 void save()
           
 void setDefaultCacheExpirationOffset(int defaultCacheExpirationOffset)
          Sets the default offset in seconds added to the response cache timestamp to get the expiration time of a document.
 void setMaxRAMCacheSize(int maxRAMCacheSize)
          Sets the approximate maximum RAM cache size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CacheSettings getInstance()
Gets the class singleton.


save

public void save()

resetDefaults

public void resetDefaults()

getMaxRAMCacheSize

public int getMaxRAMCacheSize()

setMaxRAMCacheSize

public void setMaxRAMCacheSize(int maxRAMCacheSize)
Sets the approximate maximum RAM cache size.

Parameters:
maxRAMCacheSize - The maximum cache size in bytes.

getDefaultCacheExpirationOffset

public int getDefaultCacheExpirationOffset()

setDefaultCacheExpirationOffset

public void setDefaultCacheExpirationOffset(int defaultCacheExpirationOffset)
Sets the default offset in seconds added to the response cache timestamp to get the expiration time of a document.



SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Lobo Home]