throw new IllegalArgumentException
("Target scheme (" + schm.getName() +
") must have secure socket factory.");
}
final SecureSocketFactory ssf =
(SecureSocketFactory)schm.getSocketFactory();
final Socket sock = ssf.createSocket
(conn.getSocket(), target.getHostName(), target.getPort(), true);
prepareSocket(sock, context, params);
final boolean secure = ssf.isSecure(sock);
conn.update(sock, target, secure, params);
//@@@ error handling: close the layered socket in case of exception?
} // updateSecureConnection