Constructors Summary |
---|
public HttpListener()
this(Common.USE_DEFAULT_VALUES);
|
public HttpListener(int options)
super(comparators, runtimeVersion);
// Properties (see root bean comments for the bean graph)
initPropertyTables(2);
this.createProperty("ssl", SSL,
Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
Ssl.class);
this.createAttribute(SSL, "cert-nickname", "CertNickname",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(SSL, "ssl2-enabled", "Ssl2Enabled",
AttrProp.CDATA,
null, "false");
this.createAttribute(SSL, "ssl2-ciphers", "Ssl2Ciphers",
AttrProp.CDATA | AttrProp.IMPLIED,
null, null);
this.createAttribute(SSL, "ssl3-enabled", "Ssl3Enabled",
AttrProp.CDATA,
null, "true");
this.createAttribute(SSL, "ssl3-tls-ciphers", "Ssl3TlsCiphers",
AttrProp.CDATA | AttrProp.IMPLIED,
null, null);
this.createAttribute(SSL, "tls-enabled", "TlsEnabled",
AttrProp.CDATA,
null, "true");
this.createAttribute(SSL, "tls-rollback-enabled", "TlsRollbackEnabled",
AttrProp.CDATA,
null, "true");
this.createAttribute(SSL, "client-auth-enabled", "ClientAuthEnabled",
AttrProp.CDATA,
null, "false");
this.createProperty("property", ELEMENT_PROPERTY,
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
ElementProperty.class);
this.createAttribute(ELEMENT_PROPERTY, "name", "Name",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(ELEMENT_PROPERTY, "value", "Value",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.initialize(options);
|
Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
|
public int | addElementProperty(ElementProperty value)
return addElementProperty(value, true);
|
public int | addElementProperty(ElementProperty value, boolean overwrite)
ElementProperty old = getElementPropertyByName(value.getName());
if(old != null) {
throw new ConfigException(StringManager.getManager(HttpListener.class).getString("cannotAddDuplicate", "ElementProperty"));
}
return this.addValue(ELEMENT_PROPERTY, value, overwrite);
|
public void | dump(java.lang.StringBuffer str, java.lang.String indent)
String s;
Object o;
org.netbeans.modules.schema2beans.BaseBean n;
str.append(indent);
str.append("Ssl"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getSsl();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(SSL, 0, str, indent);
str.append(indent);
str.append("ElementProperty["+this.sizeElementProperty()+"]"); // NOI18N
for(int i=0; i<this.sizeElementProperty(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getElementProperty(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(ELEMENT_PROPERTY, i, str, indent);
}
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("HttpListener\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public java.lang.String | getAcceptorThreads()Getter for AcceptorThreads of the Element http-listener
return getAttributeValue(ServerTags.ACCEPTOR_THREADS);
|
public java.lang.String | getAddress()Getter for Address of the Element http-listener
return getAttributeValue(ServerTags.ADDRESS);
|
public static java.lang.String | getDefaultAcceptorThreads()Get the default value of AcceptorThreads from dtd
return "1".trim();
|
public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
if(attr.equals(ServerTags.FAMILY)) return "inet".trim();
if(attr.equals(ServerTags.BLOCKING_ENABLED)) return "false".trim();
if(attr.equals(ServerTags.ACCEPTOR_THREADS)) return "1".trim();
if(attr.equals(ServerTags.SECURITY_ENABLED)) return "false".trim();
if(attr.equals(ServerTags.XPOWERED_BY)) return "true".trim();
if(attr.equals(ServerTags.ENABLED)) return "true".trim();
return null;
|
public static java.lang.String | getDefaultBlockingEnabled()Get the default value of BlockingEnabled from dtd
return "false".trim();
|
public static java.lang.String | getDefaultEnabled()Get the default value of Enabled from dtd
return "true".trim();
|
public static java.lang.String | getDefaultFamily()Get the default value of Family from dtd
return "inet".trim();
|
public static java.lang.String | getDefaultSecurityEnabled()Get the default value of SecurityEnabled from dtd
return "false".trim();
|
public java.lang.String | getDefaultVirtualServer()Getter for DefaultVirtualServer of the Element http-listener
return getAttributeValue(ServerTags.DEFAULT_VIRTUAL_SERVER);
|
public static java.lang.String | getDefaultXpoweredBy()Get the default value of XpoweredBy from dtd
return "true".trim();
|
public ElementProperty | getElementProperty(int index)
return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
|
public ElementProperty[] | getElementProperty()
return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
|
public ElementProperty | getElementPropertyByName(java.lang.String id)
if (null != id) { id = id.trim(); }
ElementProperty[] o = getElementProperty();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
return o[i];
}
}
return null;
|
public java.lang.String | getExternalPort()Getter for ExternalPort of the Element http-listener
return getAttributeValue(ServerTags.EXTERNAL_PORT);
|
public java.lang.String | getFamily()Getter for Family of the Element http-listener
return getAttributeValue(ServerTags.FAMILY);
|
public java.lang.String | getId()Getter for Id of the Element http-listener
return getAttributeValue(ServerTags.ID);
|
public java.lang.String | getPort()Getter for Port of the Element http-listener
return getAttributeValue(ServerTags.PORT);
|
public java.lang.String | getRedirectPort()Getter for RedirectPort of the Element http-listener
return getAttributeValue(ServerTags.REDIRECT_PORT);
|
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-listener" + (canHaveSiblings() ? "[@id='" + getAttributeValue("id") +"']" : "") ;
return (null != ret ? ret.trim() : null);
|
public java.lang.String | getServerName()Getter for ServerName of the Element http-listener
return getAttributeValue(ServerTags.SERVER_NAME);
|
public Ssl | getSsl()
return (Ssl)this.getValue(SSL);
|
void | initialize(int options)
|
public boolean | isBlockingEnabled()Getter for BlockingEnabled of the Element http-listener
return toBoolean(getAttributeValue(ServerTags.BLOCKING_ENABLED));
|
public boolean | isEnabled()Getter for Enabled of the Element http-listener
return toBoolean(getAttributeValue(ServerTags.ENABLED));
|
public boolean | isSecurityEnabled()Getter for SecurityEnabled of the Element http-listener
return toBoolean(getAttributeValue(ServerTags.SECURITY_ENABLED));
|
public boolean | isXpoweredBy()Getter for XpoweredBy of the Element http-listener
return toBoolean(getAttributeValue(ServerTags.XPOWERED_BY));
|
public ElementProperty | newElementProperty()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new ElementProperty();
|
public Ssl | newSsl()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new Ssl();
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public int | removeElementProperty(ElementProperty value)
return this.removeValue(ELEMENT_PROPERTY, value);
|
public int | removeElementProperty(ElementProperty value, boolean overwrite)
return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
|
public void | setAcceptorThreads(java.lang.String v, boolean overwrite)Modify the AcceptorThreads of the Element http-listener
setAttributeValue(ServerTags.ACCEPTOR_THREADS, v, overwrite);
|
public void | setAcceptorThreads(java.lang.String v)Modify the AcceptorThreads of the Element http-listener
setAttributeValue(ServerTags.ACCEPTOR_THREADS, v);
|
public void | setAddress(java.lang.String v, boolean overwrite)Modify the Address of the Element http-listener
setAttributeValue(ServerTags.ADDRESS, v, overwrite);
|
public void | setAddress(java.lang.String v)Modify the Address of the Element http-listener
setAttributeValue(ServerTags.ADDRESS, v);
|
public void | setBlockingEnabled(boolean v, boolean overwrite)Modify the BlockingEnabled of the Element http-listener
setAttributeValue(ServerTags.BLOCKING_ENABLED, ""+(v==true), overwrite);
|
public void | setBlockingEnabled(boolean v)Modify the BlockingEnabled of the Element http-listener
setAttributeValue(ServerTags.BLOCKING_ENABLED, ""+(v==true));
|
public void | setDefaultVirtualServer(java.lang.String v, boolean overwrite)Modify the DefaultVirtualServer of the Element http-listener
setAttributeValue(ServerTags.DEFAULT_VIRTUAL_SERVER, v, overwrite);
|
public void | setDefaultVirtualServer(java.lang.String v)Modify the DefaultVirtualServer of the Element http-listener
setAttributeValue(ServerTags.DEFAULT_VIRTUAL_SERVER, v);
|
public void | setElementProperty(ElementProperty[] value)
this.setValue(ELEMENT_PROPERTY, value);
|
public void | setEnabled(boolean v, boolean overwrite)Modify the Enabled of the Element http-listener
setAttributeValue(ServerTags.ENABLED, ""+(v==true), overwrite);
|
public void | setEnabled(boolean v)Modify the Enabled of the Element http-listener
setAttributeValue(ServerTags.ENABLED, ""+(v==true));
|
public void | setExternalPort(java.lang.String v, boolean overwrite)Modify the ExternalPort of the Element http-listener
setAttributeValue(ServerTags.EXTERNAL_PORT, v, overwrite);
|
public void | setExternalPort(java.lang.String v)Modify the ExternalPort of the Element http-listener
setAttributeValue(ServerTags.EXTERNAL_PORT, v);
|
public void | setFamily(java.lang.String v, boolean overwrite)Modify the Family of the Element http-listener
setAttributeValue(ServerTags.FAMILY, v, overwrite);
|
public void | setFamily(java.lang.String v)Modify the Family of the Element http-listener
setAttributeValue(ServerTags.FAMILY, v);
|
public void | setId(java.lang.String v, boolean overwrite)Modify the Id of the Element http-listener
setAttributeValue(ServerTags.ID, v, overwrite);
|
public void | setId(java.lang.String v)Modify the Id of the Element http-listener
setAttributeValue(ServerTags.ID, v);
|
public void | setPort(java.lang.String v, boolean overwrite)Modify the Port of the Element http-listener
setAttributeValue(ServerTags.PORT, v, overwrite);
|
public void | setPort(java.lang.String v)Modify the Port of the Element http-listener
setAttributeValue(ServerTags.PORT, v);
|
public void | setRedirectPort(java.lang.String v, boolean overwrite)Modify the RedirectPort of the Element http-listener
setAttributeValue(ServerTags.REDIRECT_PORT, v, overwrite);
|
public void | setRedirectPort(java.lang.String v)Modify the RedirectPort of the Element http-listener
setAttributeValue(ServerTags.REDIRECT_PORT, v);
|
public void | setSecurityEnabled(boolean v, boolean overwrite)Modify the SecurityEnabled of the Element http-listener
setAttributeValue(ServerTags.SECURITY_ENABLED, ""+(v==true), overwrite);
|
public void | setSecurityEnabled(boolean v)Modify the SecurityEnabled of the Element http-listener
setAttributeValue(ServerTags.SECURITY_ENABLED, ""+(v==true));
|
public void | setServerName(java.lang.String v, boolean overwrite)Modify the ServerName of the Element http-listener
setAttributeValue(ServerTags.SERVER_NAME, v, overwrite);
|
public void | setServerName(java.lang.String v)Modify the ServerName of the Element http-listener
setAttributeValue(ServerTags.SERVER_NAME, v);
|
public void | setSsl(Ssl value)
this.setValue(SSL, value);
|
public void | setXpoweredBy(boolean v, boolean overwrite)Modify the XpoweredBy of the Element http-listener
setAttributeValue(ServerTags.XPOWERED_BY, ""+(v==true), overwrite);
|
public void | setXpoweredBy(boolean v)Modify the XpoweredBy of the Element http-listener
setAttributeValue(ServerTags.XPOWERED_BY, ""+(v==true));
|
public int | sizeElementProperty()
return this.size(ELEMENT_PROPERTY);
|
public void | validate()
|