Package net.sf.jftp.net

Examples of net.sf.jftp.net.FtpURLConnection


    public void update(String url)
    {
        try
        {
            FtpURLConnection uc = new FtpURLConnection(new java.net.URL(url));
            FtpConnection con = uc.getFtpConnection();

            JFtp.statusP.jftp.addConnection(url, con);

            //con.addConnectionListener((ConnectionListener) JFtp.localDir);
            //con.addConnectionListener((ConnectionListener) JFtp.remoteDir);
            //JFtp.remoteDir.setCon(con);
            uc.connect();

            int response = uc.getLoginResponse();

            if(response != FtpConnection.LOGIN_OK)
            {
                setTitle("Wrong password!");
                host.setText(uc.getHost());
                port.setText(Integer.toString(uc.getPort()));
                user.setText(uc.getUser());
                pass.setText(uc.getPass());
                setVisible(true);
                toFront();
                host.requestFocus();
            }
            else
View Full Code Here

TOP

Related Classes of net.sf.jftp.net.FtpURLConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.