}
if (LOG.isDebugEnabled()) {
LOG.debug("connection established " + socket);
}
} catch (final MalformedURLException e) {
throw new ConnectionException("Connection failure", e);
} catch (final UnknownHostException e) {
throw new ConnectionException("Connection failure", e);
} catch (final ConnectException e) {
throw new ConnectionException("Failed to connect to " + host + "/" + port, e);
} catch (final IOException e) {
throw new ConnectionException("Connection failure", e);
}
}