FileDocCategorySizeDatePackage
HttpProtocol.javaAPI DocGlassfish v2 API10073Wed May 23 21:12:44 BST 2007com.sun.enterprise.config.serverbeans

HttpProtocol

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

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



	  
		this(Common.USE_DEFAULT_VALUES);
	
public HttpProtocol(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("HttpProtocol\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.VERSION)) return "HTTP/1.1".trim();
		if(attr.equals(ServerTags.DNS_LOOKUP_ENABLED)) return "false".trim();
		if(attr.equals(ServerTags.FORCED_TYPE)) return "text/html; charset=iso-8859-1".trim();
		if(attr.equals(ServerTags.DEFAULT_TYPE)) return "text/html; charset=iso-8859-1".trim();
		if(attr.equals(ServerTags.FORCED_RESPONSE_TYPE)) return "AttributeDeprecated".trim();
		if(attr.equals(ServerTags.DEFAULT_RESPONSE_TYPE)) return "AttributeDeprecated".trim();
		if(attr.equals(ServerTags.SSL_ENABLED)) return "true".trim();
	return null;
	
public static java.lang.StringgetDefaultDefaultResponseType()
Get the default value of DefaultResponseType from dtd

		return "AttributeDeprecated".trim();
	
public static java.lang.StringgetDefaultDefaultType()
Get the default value of DefaultType from dtd

		return "text/html; charset=iso-8859-1".trim();
	
public static java.lang.StringgetDefaultDnsLookupEnabled()
Get the default value of DnsLookupEnabled from dtd

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

		return "AttributeDeprecated".trim();
	
public static java.lang.StringgetDefaultForcedType()
Get the default value of ForcedType from dtd

		return "text/html; charset=iso-8859-1".trim();
	
public java.lang.StringgetDefaultResponseType()
Getter for DefaultResponseType of the Element http-protocol

return
the DefaultResponseType of the Element http-protocol

		return getAttributeValue(ServerTags.DEFAULT_RESPONSE_TYPE);
	
public static java.lang.StringgetDefaultSslEnabled()
Get the default value of SslEnabled from dtd

		return "true".trim();
	
public java.lang.StringgetDefaultType()
Getter for DefaultType of the Element http-protocol

return
the DefaultType of the Element http-protocol

		return getAttributeValue(ServerTags.DEFAULT_TYPE);
	
public static java.lang.StringgetDefaultVersion()
Get the default value of Version from dtd

		return "HTTP/1.1".trim();
	
public java.lang.StringgetForcedResponseType()
Getter for ForcedResponseType of the Element http-protocol

return
the ForcedResponseType of the Element http-protocol

		return getAttributeValue(ServerTags.FORCED_RESPONSE_TYPE);
	
public java.lang.StringgetForcedType()
Getter for ForcedType of the Element http-protocol

return
the ForcedType of the Element http-protocol

		return getAttributeValue(ServerTags.FORCED_TYPE);
	
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-protocol";
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetVersion()
Getter for Version of the Element http-protocol

return
the Version of the Element http-protocol

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


	
public booleanisDnsLookupEnabled()
Getter for DnsLookupEnabled of the Element http-protocol

return
the DnsLookupEnabled of the Element http-protocol

		return toBoolean(getAttributeValue(ServerTags.DNS_LOOKUP_ENABLED));
	
public booleanisSslEnabled()
Getter for SslEnabled of the Element http-protocol

return
the SslEnabled of the Element http-protocol

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

		comparators.remove(c);
	
public voidsetDefaultResponseType(java.lang.String v, boolean overwrite)
Modify the DefaultResponseType of the Element http-protocol

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

		setAttributeValue(ServerTags.DEFAULT_RESPONSE_TYPE, v, overwrite);
	
public voidsetDefaultResponseType(java.lang.String v)
Modify the DefaultResponseType of the Element http-protocol

param
v the new value

		setAttributeValue(ServerTags.DEFAULT_RESPONSE_TYPE, v);
	
public voidsetDefaultType(java.lang.String v, boolean overwrite)
Modify the DefaultType of the Element http-protocol

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

		setAttributeValue(ServerTags.DEFAULT_TYPE, v, overwrite);
	
public voidsetDefaultType(java.lang.String v)
Modify the DefaultType of the Element http-protocol

param
v the new value

		setAttributeValue(ServerTags.DEFAULT_TYPE, v);
	
public voidsetDnsLookupEnabled(boolean v)
Modify the DnsLookupEnabled of the Element http-protocol

param
v the new value

		setAttributeValue(ServerTags.DNS_LOOKUP_ENABLED, ""+(v==true));
	
public voidsetDnsLookupEnabled(boolean v, boolean overwrite)
Modify the DnsLookupEnabled of the Element http-protocol

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

		setAttributeValue(ServerTags.DNS_LOOKUP_ENABLED, ""+(v==true), overwrite);
	
public voidsetForcedResponseType(java.lang.String v, boolean overwrite)
Modify the ForcedResponseType of the Element http-protocol

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

		setAttributeValue(ServerTags.FORCED_RESPONSE_TYPE, v, overwrite);
	
public voidsetForcedResponseType(java.lang.String v)
Modify the ForcedResponseType of the Element http-protocol

param
v the new value

		setAttributeValue(ServerTags.FORCED_RESPONSE_TYPE, v);
	
public voidsetForcedType(java.lang.String v, boolean overwrite)
Modify the ForcedType of the Element http-protocol

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

		setAttributeValue(ServerTags.FORCED_TYPE, v, overwrite);
	
public voidsetForcedType(java.lang.String v)
Modify the ForcedType of the Element http-protocol

param
v the new value

		setAttributeValue(ServerTags.FORCED_TYPE, v);
	
public voidsetSslEnabled(boolean v, boolean overwrite)
Modify the SslEnabled of the Element http-protocol

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

		setAttributeValue(ServerTags.SSL_ENABLED, ""+(v==true), overwrite);
	
public voidsetSslEnabled(boolean v)
Modify the SslEnabled of the Element http-protocol

param
v the new value

		setAttributeValue(ServerTags.SSL_ENABLED, ""+(v==true));
	
public voidsetVersion(java.lang.String v, boolean overwrite)
Modify the Version of the Element http-protocol

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

		setAttributeValue(ServerTags.VERSION, v, overwrite);
	
public voidsetVersion(java.lang.String v)
Modify the Version of the Element http-protocol

param
v the new value

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