FileDocCategorySizeDatePackage
HttpFileCache.javaAPI DocGlassfish v2 API13694Tue Feb 21 12:28:18 GMT 2006com.sun.enterprise.config.serverbeans

HttpFileCache

public class HttpFileCache extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class HttpFileCache matches the DTD element http-file-cache

Fields Summary
static Vector
comparators
private static final org.netbeans.modules.schema2beans.Version
runtimeVersion
Constructors Summary
public HttpFileCache()



	  
		this(Common.USE_DEFAULT_VALUES);
	
public HttpFileCache(int options)

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(0);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public voiddump(java.lang.StringBuffer str, java.lang.String indent)

		String s;
		Object o;
		org.netbeans.modules.schema2beans.BaseBean n;
	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("HttpFileCache\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
		if(attr.equals(ServerTags.GLOBALLY_ENABLED)) return "true".trim();
		if(attr.equals(ServerTags.FILE_CACHING_ENABLED)) return "on".trim();
		if(attr.equals(ServerTags.MAX_AGE_IN_SECONDS)) return "30".trim();
		if(attr.equals(ServerTags.MEDIUM_FILE_SIZE_LIMIT_IN_BYTES)) return "537600".trim();
		if(attr.equals(ServerTags.MEDIUM_FILE_SPACE_IN_BYTES)) return "10485760".trim();
		if(attr.equals(ServerTags.SMALL_FILE_SIZE_LIMIT_IN_BYTES)) return "2048".trim();
		if(attr.equals(ServerTags.SMALL_FILE_SPACE_IN_BYTES)) return "1048576".trim();
		if(attr.equals(ServerTags.FILE_TRANSMISSION_ENABLED)) return "false".trim();
		if(attr.equals(ServerTags.MAX_FILES_COUNT)) return "1024".trim();
		if(attr.equals(ServerTags.HASH_INIT_SIZE)) return "0".trim();
	return null;
	
public static java.lang.StringgetDefaultFileCachingEnabled()
Get the default value of FileCachingEnabled from dtd

		return "on".trim();
	
public static java.lang.StringgetDefaultFileTransmissionEnabled()
Get the default value of FileTransmissionEnabled from dtd

		return "false".trim();
	
public static java.lang.StringgetDefaultGloballyEnabled()
Get the default value of GloballyEnabled from dtd

		return "true".trim();
	
public static java.lang.StringgetDefaultHashInitSize()
Get the default value of HashInitSize from dtd

		return "0".trim();
	
public static java.lang.StringgetDefaultMaxAgeInSeconds()
Get the default value of MaxAgeInSeconds from dtd

		return "30".trim();
	
public static java.lang.StringgetDefaultMaxFilesCount()
Get the default value of MaxFilesCount from dtd

		return "1024".trim();
	
public static java.lang.StringgetDefaultMediumFileSizeLimitInBytes()
Get the default value of MediumFileSizeLimitInBytes from dtd

		return "537600".trim();
	
public static java.lang.StringgetDefaultMediumFileSpaceInBytes()
Get the default value of MediumFileSpaceInBytes from dtd

		return "10485760".trim();
	
public static java.lang.StringgetDefaultSmallFileSizeLimitInBytes()
Get the default value of SmallFileSizeLimitInBytes from dtd

		return "2048".trim();
	
public static java.lang.StringgetDefaultSmallFileSpaceInBytes()
Get the default value of SmallFileSpaceInBytes from dtd

		return "1048576".trim();
	
public java.lang.StringgetFileCachingEnabled()
Getter for FileCachingEnabled of the Element http-file-cache

return
the FileCachingEnabled of the Element http-file-cache

		return getAttributeValue(ServerTags.FILE_CACHING_ENABLED);
	
public java.lang.StringgetHashInitSize()
Getter for HashInitSize of the Element http-file-cache

return
the HashInitSize of the Element http-file-cache

		return getAttributeValue(ServerTags.HASH_INIT_SIZE);
	
public java.lang.StringgetMaxAgeInSeconds()
Getter for MaxAgeInSeconds of the Element http-file-cache

return
the MaxAgeInSeconds of the Element http-file-cache

		return getAttributeValue(ServerTags.MAX_AGE_IN_SECONDS);
	
public java.lang.StringgetMaxFilesCount()
Getter for MaxFilesCount of the Element http-file-cache

return
the MaxFilesCount of the Element http-file-cache

		return getAttributeValue(ServerTags.MAX_FILES_COUNT);
	
public java.lang.StringgetMediumFileSizeLimitInBytes()
Getter for MediumFileSizeLimitInBytes of the Element http-file-cache

return
the MediumFileSizeLimitInBytes of the Element http-file-cache

		return getAttributeValue(ServerTags.MEDIUM_FILE_SIZE_LIMIT_IN_BYTES);
	
public java.lang.StringgetMediumFileSpaceInBytes()
Getter for MediumFileSpaceInBytes of the Element http-file-cache

return
the MediumFileSpaceInBytes of the Element http-file-cache

		return getAttributeValue(ServerTags.MEDIUM_FILE_SPACE_IN_BYTES);
	
protected java.lang.StringgetRelativeXPath()
get the xpath representation for this element returns something like abc[@name='value'] or abc depending on the type of the bean

	    String ret = null;
	    ret = "http-file-cache";
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetSmallFileSizeLimitInBytes()
Getter for SmallFileSizeLimitInBytes of the Element http-file-cache

return
the SmallFileSizeLimitInBytes of the Element http-file-cache

		return getAttributeValue(ServerTags.SMALL_FILE_SIZE_LIMIT_IN_BYTES);
	
public java.lang.StringgetSmallFileSpaceInBytes()
Getter for SmallFileSpaceInBytes of the Element http-file-cache

return
the SmallFileSpaceInBytes of the Element http-file-cache

		return getAttributeValue(ServerTags.SMALL_FILE_SPACE_IN_BYTES);
	
voidinitialize(int options)


	
public booleanisFileTransmissionEnabled()
Getter for FileTransmissionEnabled of the Element http-file-cache

return
the FileTransmissionEnabled of the Element http-file-cache

		return toBoolean(getAttributeValue(ServerTags.FILE_TRANSMISSION_ENABLED));
	
public booleanisGloballyEnabled()
Getter for GloballyEnabled of the Element http-file-cache

return
the GloballyEnabled of the Element http-file-cache

		return toBoolean(getAttributeValue(ServerTags.GLOBALLY_ENABLED));
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public voidsetFileCachingEnabled(java.lang.String v)
Modify the FileCachingEnabled of the Element http-file-cache

param
v the new value

		setAttributeValue(ServerTags.FILE_CACHING_ENABLED, v);
	
public voidsetFileCachingEnabled(java.lang.String v, boolean overwrite)
Modify the FileCachingEnabled of the Element http-file-cache

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.FILE_CACHING_ENABLED, v, overwrite);
	
public voidsetFileTransmissionEnabled(boolean v, boolean overwrite)
Modify the FileTransmissionEnabled of the Element http-file-cache

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.FILE_TRANSMISSION_ENABLED, ""+(v==true), overwrite);
	
public voidsetFileTransmissionEnabled(boolean v)
Modify the FileTransmissionEnabled of the Element http-file-cache

param
v the new value

		setAttributeValue(ServerTags.FILE_TRANSMISSION_ENABLED, ""+(v==true));
	
public voidsetGloballyEnabled(boolean v, boolean overwrite)
Modify the GloballyEnabled of the Element http-file-cache

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.GLOBALLY_ENABLED, ""+(v==true), overwrite);
	
public voidsetGloballyEnabled(boolean v)
Modify the GloballyEnabled of the Element http-file-cache

param
v the new value

		setAttributeValue(ServerTags.GLOBALLY_ENABLED, ""+(v==true));
	
public voidsetHashInitSize(java.lang.String v, boolean overwrite)
Modify the HashInitSize of the Element http-file-cache

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.HASH_INIT_SIZE, v, overwrite);
	
public voidsetHashInitSize(java.lang.String v)
Modify the HashInitSize of the Element http-file-cache

param
v the new value

		setAttributeValue(ServerTags.HASH_INIT_SIZE, v);
	
public voidsetMaxAgeInSeconds(java.lang.String v, boolean overwrite)
Modify the MaxAgeInSeconds of the Element http-file-cache

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.MAX_AGE_IN_SECONDS, v, overwrite);
	
public voidsetMaxAgeInSeconds(java.lang.String v)
Modify the MaxAgeInSeconds of the Element http-file-cache

param
v the new value

		setAttributeValue(ServerTags.MAX_AGE_IN_SECONDS, v);
	
public voidsetMaxFilesCount(java.lang.String v, boolean overwrite)
Modify the MaxFilesCount of the Element http-file-cache

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.MAX_FILES_COUNT, v, overwrite);
	
public voidsetMaxFilesCount(java.lang.String v)
Modify the MaxFilesCount of the Element http-file-cache

param
v the new value

		setAttributeValue(ServerTags.MAX_FILES_COUNT, v);
	
public voidsetMediumFileSizeLimitInBytes(java.lang.String v, boolean overwrite)
Modify the MediumFileSizeLimitInBytes of the Element http-file-cache

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.MEDIUM_FILE_SIZE_LIMIT_IN_BYTES, v, overwrite);
	
public voidsetMediumFileSizeLimitInBytes(java.lang.String v)
Modify the MediumFileSizeLimitInBytes of the Element http-file-cache

param
v the new value

		setAttributeValue(ServerTags.MEDIUM_FILE_SIZE_LIMIT_IN_BYTES, v);
	
public voidsetMediumFileSpaceInBytes(java.lang.String v, boolean overwrite)
Modify the MediumFileSpaceInBytes of the Element http-file-cache

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.MEDIUM_FILE_SPACE_IN_BYTES, v, overwrite);
	
public voidsetMediumFileSpaceInBytes(java.lang.String v)
Modify the MediumFileSpaceInBytes of the Element http-file-cache

param
v the new value

		setAttributeValue(ServerTags.MEDIUM_FILE_SPACE_IN_BYTES, v);
	
public voidsetSmallFileSizeLimitInBytes(java.lang.String v, boolean overwrite)
Modify the SmallFileSizeLimitInBytes of the Element http-file-cache

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.SMALL_FILE_SIZE_LIMIT_IN_BYTES, v, overwrite);
	
public voidsetSmallFileSizeLimitInBytes(java.lang.String v)
Modify the SmallFileSizeLimitInBytes of the Element http-file-cache

param
v the new value

		setAttributeValue(ServerTags.SMALL_FILE_SIZE_LIMIT_IN_BYTES, v);
	
public voidsetSmallFileSpaceInBytes(java.lang.String v, boolean overwrite)
Modify the SmallFileSpaceInBytes of the Element http-file-cache

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.SMALL_FILE_SPACE_IN_BYTES, v, overwrite);
	
public voidsetSmallFileSpaceInBytes(java.lang.String v)
Modify the SmallFileSpaceInBytes of the Element http-file-cache

param
v the new value

		setAttributeValue(ServerTags.SMALL_FILE_SPACE_IN_BYTES, v);
	
public voidvalidate()