FileDocCategorySizeDatePackage
AccessLog.javaAPI DocGlassfish v2 API8192Tue Feb 21 12:28:14 GMT 2006com.sun.enterprise.config.serverbeans

AccessLog

public class AccessLog extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class AccessLog matches the DTD element access-log

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



	  
		this(Common.USE_DEFAULT_VALUES);
	
public AccessLog(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("AccessLog\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.FORMAT)) return "%client.name% %auth-user-name% %datetime% %request% %status% %response.length%".trim();
		if(attr.equals(ServerTags.ROTATION_POLICY)) return "time".trim();
		if(attr.equals(ServerTags.ROTATION_INTERVAL_IN_MINUTES)) return "1440".trim();
		if(attr.equals(ServerTags.ROTATION_SUFFIX)) return "yyyyMMdd-HH'h'mm'm'ss's'".trim();
		if(attr.equals(ServerTags.ROTATION_ENABLED)) return "true".trim();
	return null;
	
public static java.lang.StringgetDefaultFormat()
Get the default value of Format from dtd

		return "%client.name% %auth-user-name% %datetime% %request% %status% %response.length%".trim();
	
public static java.lang.StringgetDefaultRotationEnabled()
Get the default value of RotationEnabled from dtd

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

		return "1440".trim();
	
public static java.lang.StringgetDefaultRotationPolicy()
Get the default value of RotationPolicy from dtd

		return "time".trim();
	
public static java.lang.StringgetDefaultRotationSuffix()
Get the default value of RotationSuffix from dtd

		return "yyyyMMdd-HH'h'mm'm'ss's'".trim();
	
public java.lang.StringgetFormat()
Getter for Format of the Element access-log

return
the Format of the Element access-log

		return getAttributeValue(ServerTags.FORMAT);
	
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 = "access-log";
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetRotationIntervalInMinutes()
Getter for RotationIntervalInMinutes of the Element access-log

return
the RotationIntervalInMinutes of the Element access-log

		return getAttributeValue(ServerTags.ROTATION_INTERVAL_IN_MINUTES);
	
public java.lang.StringgetRotationPolicy()
Getter for RotationPolicy of the Element access-log

return
the RotationPolicy of the Element access-log

		return getAttributeValue(ServerTags.ROTATION_POLICY);
	
public java.lang.StringgetRotationSuffix()
Getter for RotationSuffix of the Element access-log

return
the RotationSuffix of the Element access-log

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


	
public booleanisRotationEnabled()
Getter for RotationEnabled of the Element access-log

return
the RotationEnabled of the Element access-log

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

		comparators.remove(c);
	
public voidsetFormat(java.lang.String v, boolean overwrite)
Modify the Format of the Element access-log

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

		setAttributeValue(ServerTags.FORMAT, v, overwrite);
	
public voidsetFormat(java.lang.String v)
Modify the Format of the Element access-log

param
v the new value

		setAttributeValue(ServerTags.FORMAT, v);
	
public voidsetRotationEnabled(boolean v, boolean overwrite)
Modify the RotationEnabled of the Element access-log

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

		setAttributeValue(ServerTags.ROTATION_ENABLED, ""+(v==true), overwrite);
	
public voidsetRotationEnabled(boolean v)
Modify the RotationEnabled of the Element access-log

param
v the new value

		setAttributeValue(ServerTags.ROTATION_ENABLED, ""+(v==true));
	
public voidsetRotationIntervalInMinutes(java.lang.String v, boolean overwrite)
Modify the RotationIntervalInMinutes of the Element access-log

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

		setAttributeValue(ServerTags.ROTATION_INTERVAL_IN_MINUTES, v, overwrite);
	
public voidsetRotationIntervalInMinutes(java.lang.String v)
Modify the RotationIntervalInMinutes of the Element access-log

param
v the new value

		setAttributeValue(ServerTags.ROTATION_INTERVAL_IN_MINUTES, v);
	
public voidsetRotationPolicy(java.lang.String v)
Modify the RotationPolicy of the Element access-log

param
v the new value

		setAttributeValue(ServerTags.ROTATION_POLICY, v);
	
public voidsetRotationPolicy(java.lang.String v, boolean overwrite)
Modify the RotationPolicy of the Element access-log

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

		setAttributeValue(ServerTags.ROTATION_POLICY, v, overwrite);
	
public voidsetRotationSuffix(java.lang.String v, boolean overwrite)
Modify the RotationSuffix of the Element access-log

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

		setAttributeValue(ServerTags.ROTATION_SUFFIX, v, overwrite);
	
public voidsetRotationSuffix(java.lang.String v)
Modify the RotationSuffix of the Element access-log

param
v the new value

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