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

HttpAccessLog

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

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



	  
		this(Common.USE_DEFAULT_VALUES);
	
public HttpAccessLog(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("HttpAccessLog\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.LOG_DIRECTORY)) return "${com.sun.aas.instanceRoot}/logs/access".trim();
		if(attr.equals(ServerTags.IPONLY)) return "true".trim();
	return null;
	
public static java.lang.StringgetDefaultIponly()
Get the default value of Iponly from dtd

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

		return "${com.sun.aas.instanceRoot}/logs/access".trim();
	
public java.lang.StringgetLogDirectory()
Getter for LogDirectory of the Element http-access-log

return
the LogDirectory of the Element http-access-log

		return getAttributeValue(ServerTags.LOG_DIRECTORY);
	
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-access-log";
	    return (null != ret ? ret.trim() : null);
	
voidinitialize(int options)


	
public booleanisIponly()
Getter for Iponly of the Element http-access-log

return
the Iponly of the Element http-access-log

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

		comparators.remove(c);
	
public voidsetIponly(boolean v)
Modify the Iponly of the Element http-access-log

param
v the new value

		setAttributeValue(ServerTags.IPONLY, ""+(v==true));
	
public voidsetIponly(boolean v, boolean overwrite)
Modify the Iponly of the Element http-access-log

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

		setAttributeValue(ServerTags.IPONLY, ""+(v==true), overwrite);
	
public voidsetLogDirectory(java.lang.String v, boolean overwrite)
Modify the LogDirectory of the Element http-access-log

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

		setAttributeValue(ServerTags.LOG_DIRECTORY, v, overwrite);
	
public voidsetLogDirectory(java.lang.String v)
Modify the LogDirectory of the Element http-access-log

param
v the new value

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