FileDocCategorySizeDatePackage
Cache.javaAPI DocGlassfish v2 API5779Fri May 04 22:31:54 BST 2007com.sun.enterprise.deployment.runtime.web

Cache

public class Cache extends WebPropertyContainer
this class contains runtime information for the web bundle it was kept to be backward compatible with the schema2beans descriptors generated by iAS 7.0 engineering team.
author
Jerome Dochez

Fields Summary
public static final String
CACHE_HELPER
public static final String
DEFAULT_HELPER
public static final String
PROPERTY
public static final String
CACHE_MAPPING
public static final String
MAX_ENTRIES
public static final String
TIMEOUT_IN_SECONDS
public static final String
ENABLED
Constructors Summary
public Cache()

    
      
	
    	// set default values
	setAttributeValue("MaxEntries", "4096");
	setAttributeValue("TimeoutInSeconds", "30");
    
Methods Summary
public intaddCacheHelper(CacheHelper value)

	return addValue(CACHE_HELPER, value);
    
public intaddCacheMapping(CacheMapping value)

	return addValue(CACHE_MAPPING, value);
    
public voidaddNewCacheHelper(CacheHelper value)

	addCacheHelper(value);
    
public voidaddNewCacheMapping(CacheMapping value)

	addCacheMapping(value);
    
public CacheHelpergetCacheHelper(int index)

	return (CacheHelper)getValue(CACHE_HELPER, index);
    
public CacheHelper[]getCacheHelper()

	return (CacheHelper[])getValues(CACHE_HELPER);
    
public CacheMappinggetCacheMapping(int index)

	return (CacheMapping)getValue(CACHE_MAPPING, index);
    
public CacheMapping[]getCacheMapping()

	return (CacheMapping[])getValues(CACHE_MAPPING);
    
public DefaultHelpergetDefaultHelper()

	return (DefaultHelper)getValue(DEFAULT_HELPER);
    
public intremoveCacheHelper(CacheHelper value)

	return removeValue(CACHE_HELPER, value);
    
public intremoveCacheMapping(CacheMapping value)

	return removeValue(CACHE_MAPPING, value);
    
public voidsetCacheHelper(int index, CacheHelper value)

	setValue(CACHE_HELPER, index, value);
    
public voidsetCacheHelper(CacheHelper[] value)

	setValue(CACHE_HELPER, value);
    
public voidsetCacheMapping(int index, CacheMapping value)

	setValue(CACHE_MAPPING, index, value);
    
public voidsetCacheMapping(CacheMapping[] value)

	setValue(CACHE_MAPPING, value);
    
public voidsetDefaultHelper(DefaultHelper value)

	setValue(DEFAULT_HELPER, value);
    
public intsizeCacheHelper()

	return size(CACHE_HELPER);
    
public intsizeCacheMapping()

	return size(CACHE_MAPPING);
    
public booleanverify()

	return true;