Examples of enterLocalPassiveMode()


Examples of org.apache.commons.net.ftp.FTPClient.enterLocalPassiveMode()

                }
            }

            if (passive) {
                log("entering passive mode", Project.MSG_VERBOSE);
                ftp.enterLocalPassiveMode();
                if (!FTPReply.isPositiveCompletion(ftp.getReplyCode())) {
                    throw new BuildException("could not enter into passive "
                                             + "mode: " + ftp.getReplyString());
                }
            }
View Full Code Here

Examples of org.apache.commons.net.ftp.FTPClient.enterLocalPassiveMode()

                }
            }

            if (task.isPassive()) {
                task.log("entering passive mode", Project.MSG_VERBOSE);
                ftp.enterLocalPassiveMode();
                if (!FTPReply.isPositiveCompletion(ftp.getReplyCode())) {
                    throw new BuildException("could not enter into passive "
                                             + "mode: " + ftp.getReplyString());
                }
            }
View Full Code Here

Examples of org.apache.commons.net.ftp.FTPClient.enterLocalPassiveMode()

            {
                if (ftp.login( getUsername(), getPassword())){
                    if (binaryTransfer) {
                        ftp.setFileType(FTP.BINARY_FILE_TYPE);
                    }
                    ftp.enterLocalPassiveMode();// should probably come from the setup dialog
                    boolean ftpOK=false;
                    if (isUpload()) {
                        String contents=getLocalFileContents();
                        if (contents.length() > 0){
                            byte bytes[] = contents.getBytes();// TODO this assumes local encoding
View Full Code Here

Examples of org.apache.commons.net.ftp.FTPClient.enterLocalPassiveMode()

        }
        if (isBinaryMode()) {
            ftp.setFileType(FTP.BINARY_FILE_TYPE);
        }
        if (isPassiveMode()) {
            ftp.enterLocalPassiveMode();
        }
    }

    protected void disconnect(SocketClient client) throws Exception {
        FTPClient ftp = (FTPClient) client;
View Full Code Here

Examples of org.apache.commons.net.ftp.FTPClient.enterLocalPassiveMode()

                }
            }

            if (passive) {
                log("entering passive mode", Project.MSG_VERBOSE);
                ftp.enterLocalPassiveMode();
                if (!FTPReply.isPositiveCompletion(ftp.getReplyCode())) {
                    throw new BuildException("could not enter into passive "
                         + "mode: " + ftp.getReplyString());
                }
            }
View Full Code Here

Examples of org.apache.commons.net.ftp.FTPSClient.enterLocalPassiveMode()

                    }

                    Boolean passiveMode = FtpsFileSystemConfigBuilder.getInstance().getPassiveMode(fileSystemOptions);
                    if (passiveMode != null && passiveMode.booleanValue())
                    {
                        client.enterLocalPassiveMode();
                    }
                }
                catch (final IOException e)
                {
                    if (client.isConnected())
View Full Code Here

Examples of org.apache.commons.net.ftp.FTPSClient.enterLocalPassiveMode()

            if (binaryTransfer) ftps.setFileType(FTP.BINARY_FILE_TYPE);

            // Use passive mode as default because most of us are
            // behind firewalls these days.
            ftps.enterLocalPassiveMode();

            if (storeFile)
            {
                InputStream input;
View Full Code Here

Examples of org.apache.commons.net.ftp.FTPSClient.enterLocalPassiveMode()

        {
                super.connect() ;
                final FTPSClient ftpsClient = (FTPSClient)m_oConn ;
               
                // force passive mode
                ftpsClient.enterLocalPassiveMode() ;
               
                ftpsClient.execPBSZ(0) ;
                ftpsClient.execPROT("P") ;
        }
       
View Full Code Here

Examples of org.apache.commons.net.ftp.FTPSClient.enterLocalPassiveMode()

                    }

                    Boolean passiveMode = FtpsFileSystemConfigBuilder.getInstance().getPassiveMode(fileSystemOptions);
                    if (passiveMode != null && passiveMode.booleanValue())
                    {
                        client.enterLocalPassiveMode();
                    }
                }
                catch (final IOException e)
                {
                    if (client.isConnected())
View Full Code Here

Examples of sos.net.SOSFTP.enterLocalPassiveMode()

             * is the same functionality.
             * Unfortunately the "enterLocalPassiveMode" did not reset the ReplyString, therefore
             * a call to this method will result into an error, if the previous command returns a > 500 response.
             *
             */
            sosftp.enterLocalPassiveMode();
            /**
             * JIRA SOSFTP-93
             * this method is not changing the Replystring. Therefore we don't have to check the response.
             */
            // if (sosftp.getReplyCode() > ERROR_CODE) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.