throws IOException, KeyStoreException, NoSuchAlgorithmException,
CertificateException, UnrecoverableKeyException,
KeyManagementException {
// Acquire the server socket factory for this Connector
ServerSocketFactory factory = getFactory();
// If no address is specified, open a connection on all addresses
if (address == null) {
log(sm.getString("coyoteConnector.allAddresses"));
return (factory.createSocket(port, acceptCount));
}
// Open a server socket on the specified address
try {
InetAddress is = InetAddress.getByName(address);
log(sm.getString("coyoteConnector.anAddress", address));
return (factory.createSocket(port, acceptCount, is));
} catch (Exception e) {
log(sm.getString("coyoteConnector.noAddress", address));
return (factory.createSocket(port, acceptCount));
}
}