Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
|
public void | dump(java.lang.StringBuffer str, java.lang.String indent)
String s;
Object o;
org.netbeans.modules.schema2beans.BaseBean n;
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("HttpProtocol\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public static java.lang.String | getDefaultAttributeValue(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.String | getDefaultDefaultResponseType()Get the default value of DefaultResponseType from dtd
return "AttributeDeprecated".trim();
|
public static java.lang.String | getDefaultDefaultType()Get the default value of DefaultType from dtd
return "text/html; charset=iso-8859-1".trim();
|
public static java.lang.String | getDefaultDnsLookupEnabled()Get the default value of DnsLookupEnabled from dtd
return "false".trim();
|
public static java.lang.String | getDefaultForcedResponseType()Get the default value of ForcedResponseType from dtd
return "AttributeDeprecated".trim();
|
public static java.lang.String | getDefaultForcedType()Get the default value of ForcedType from dtd
return "text/html; charset=iso-8859-1".trim();
|
public java.lang.String | getDefaultResponseType()Getter for DefaultResponseType of the Element http-protocol
return getAttributeValue(ServerTags.DEFAULT_RESPONSE_TYPE);
|
public static java.lang.String | getDefaultSslEnabled()Get the default value of SslEnabled from dtd
return "true".trim();
|
public java.lang.String | getDefaultType()Getter for DefaultType of the Element http-protocol
return getAttributeValue(ServerTags.DEFAULT_TYPE);
|
public static java.lang.String | getDefaultVersion()Get the default value of Version from dtd
return "HTTP/1.1".trim();
|
public java.lang.String | getForcedResponseType()Getter for ForcedResponseType of the Element http-protocol
return getAttributeValue(ServerTags.FORCED_RESPONSE_TYPE);
|
public java.lang.String | getForcedType()Getter for ForcedType of the Element http-protocol
return getAttributeValue(ServerTags.FORCED_TYPE);
|
protected java.lang.String | getRelativeXPath()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.String | getVersion()Getter for Version of the Element http-protocol
return getAttributeValue(ServerTags.VERSION);
|
void | initialize(int options)
|
public boolean | isDnsLookupEnabled()Getter for DnsLookupEnabled of the Element http-protocol
return toBoolean(getAttributeValue(ServerTags.DNS_LOOKUP_ENABLED));
|
public boolean | isSslEnabled()Getter for SslEnabled of the Element http-protocol
return toBoolean(getAttributeValue(ServerTags.SSL_ENABLED));
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public void | setDefaultResponseType(java.lang.String v, boolean overwrite)Modify the DefaultResponseType of the Element http-protocol
setAttributeValue(ServerTags.DEFAULT_RESPONSE_TYPE, v, overwrite);
|
public void | setDefaultResponseType(java.lang.String v)Modify the DefaultResponseType of the Element http-protocol
setAttributeValue(ServerTags.DEFAULT_RESPONSE_TYPE, v);
|
public void | setDefaultType(java.lang.String v, boolean overwrite)Modify the DefaultType of the Element http-protocol
setAttributeValue(ServerTags.DEFAULT_TYPE, v, overwrite);
|
public void | setDefaultType(java.lang.String v)Modify the DefaultType of the Element http-protocol
setAttributeValue(ServerTags.DEFAULT_TYPE, v);
|
public void | setDnsLookupEnabled(boolean v)Modify the DnsLookupEnabled of the Element http-protocol
setAttributeValue(ServerTags.DNS_LOOKUP_ENABLED, ""+(v==true));
|
public void | setDnsLookupEnabled(boolean v, boolean overwrite)Modify the DnsLookupEnabled of the Element http-protocol
setAttributeValue(ServerTags.DNS_LOOKUP_ENABLED, ""+(v==true), overwrite);
|
public void | setForcedResponseType(java.lang.String v, boolean overwrite)Modify the ForcedResponseType of the Element http-protocol
setAttributeValue(ServerTags.FORCED_RESPONSE_TYPE, v, overwrite);
|
public void | setForcedResponseType(java.lang.String v)Modify the ForcedResponseType of the Element http-protocol
setAttributeValue(ServerTags.FORCED_RESPONSE_TYPE, v);
|
public void | setForcedType(java.lang.String v, boolean overwrite)Modify the ForcedType of the Element http-protocol
setAttributeValue(ServerTags.FORCED_TYPE, v, overwrite);
|
public void | setForcedType(java.lang.String v)Modify the ForcedType of the Element http-protocol
setAttributeValue(ServerTags.FORCED_TYPE, v);
|
public void | setSslEnabled(boolean v, boolean overwrite)Modify the SslEnabled of the Element http-protocol
setAttributeValue(ServerTags.SSL_ENABLED, ""+(v==true), overwrite);
|
public void | setSslEnabled(boolean v)Modify the SslEnabled of the Element http-protocol
setAttributeValue(ServerTags.SSL_ENABLED, ""+(v==true));
|
public void | setVersion(java.lang.String v, boolean overwrite)Modify the Version of the Element http-protocol
setAttributeValue(ServerTags.VERSION, v, overwrite);
|
public void | setVersion(java.lang.String v)Modify the Version of the Element http-protocol
setAttributeValue(ServerTags.VERSION, v);
|
public void | validate()
|