102103104105106107108109110111112
if (tmp.length > 1) { password = tmp[1]; } } reply = ftp.login(user, password); if (!reply.isSuccess()) { if (userPasswordInput == null) { throw new RuntimeException("Login failure for host: " + host); } else { userPasswordInput.setHost(host);
113114115116117118119120121122123
boolean success = false; while (!success) { if (userPasswordInput.showDialog()) { user = userPasswordInput.getUser(); password = userPasswordInput.getPassword(); reply = ftp.login(user, password); success = reply.isSuccess(); } else { // canceled break; }