server socket on *all* IP addresses for this host */
if ((address.length() > 0) && !address.equalsIgnoreCase(" ")) {
try {
InetAddress.getByName(address);
} catch (Exception e) {
errors.add("address", new ActionError("error.address.invalid"));
}
} else {
address = " ";
}
/* ports */
numberCheck("portNumber", portText, true, 1, 65535);
numberCheck("redirectPortText", redirectPortText, true, -1, 65535);
/* processors*/
numberCheck("minProcessorsText", minProcessorsText, true, 1, 512);
try {
// if min is a valid integer, then check that max >= min
int min = Integer.parseInt(minProcessorsText);
numberCheck("maxProcessorsText", maxProcessorsText, true, min, 512);
} catch (Exception e) {
// check for the complete range
numberCheck("maxProcessorsText", maxProcessorsText, true, 1, 512);
}
// proxy
if ((proxyName!= null) && (proxyName.length() > 0)) {
try {
InetAddress.getByName(proxyName);
} catch (Exception e) {
errors.add("proxyName", new ActionError("error.proxyName.invalid"));
}
}
// supported only by Coyote HTTP and HTTPS connectors
if (!("AJP".equalsIgnoreCase(connectorType)))