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("KeepAlive\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.THREAD_COUNT)) return "1".trim();
if(attr.equals(ServerTags.MAX_CONNECTIONS)) return "256".trim();
if(attr.equals(ServerTags.TIMEOUT_IN_SECONDS)) return "30".trim();
return null;
|
public static java.lang.String | getDefaultMaxConnections()Get the default value of MaxConnections from dtd
return "256".trim();
|
public static java.lang.String | getDefaultThreadCount()Get the default value of ThreadCount from dtd
return "1".trim();
|
public static java.lang.String | getDefaultTimeoutInSeconds()Get the default value of TimeoutInSeconds from dtd
return "30".trim();
|
public java.lang.String | getMaxConnections()Getter for MaxConnections of the Element keep-alive
return getAttributeValue(ServerTags.MAX_CONNECTIONS);
|
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 = "keep-alive";
return (null != ret ? ret.trim() : null);
|
public java.lang.String | getThreadCount()Getter for ThreadCount of the Element keep-alive
return getAttributeValue(ServerTags.THREAD_COUNT);
|
public java.lang.String | getTimeoutInSeconds()Getter for TimeoutInSeconds of the Element keep-alive
return getAttributeValue(ServerTags.TIMEOUT_IN_SECONDS);
|
void | initialize(int options)
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public void | setMaxConnections(java.lang.String v)Modify the MaxConnections of the Element keep-alive
setAttributeValue(ServerTags.MAX_CONNECTIONS, v);
|
public void | setMaxConnections(java.lang.String v, boolean overwrite)Modify the MaxConnections of the Element keep-alive
setAttributeValue(ServerTags.MAX_CONNECTIONS, v, overwrite);
|
public void | setThreadCount(java.lang.String v, boolean overwrite)Modify the ThreadCount of the Element keep-alive
setAttributeValue(ServerTags.THREAD_COUNT, v, overwrite);
|
public void | setThreadCount(java.lang.String v)Modify the ThreadCount of the Element keep-alive
setAttributeValue(ServerTags.THREAD_COUNT, v);
|
public void | setTimeoutInSeconds(java.lang.String v, boolean overwrite)Modify the TimeoutInSeconds of the Element keep-alive
setAttributeValue(ServerTags.TIMEOUT_IN_SECONDS, v, overwrite);
|
public void | setTimeoutInSeconds(java.lang.String v)Modify the TimeoutInSeconds of the Element keep-alive
setAttributeValue(ServerTags.TIMEOUT_IN_SECONDS, v);
|
public void | validate()
|