Class CommonsNetFtpClient

    • Constructor Detail

      • CommonsNetFtpClient

        public CommonsNetFtpClient​(java.lang.String remoteHost,
                                   int port,
                                   int timeout)
                            throws java.io.IOException
        Constructor.
        Parameters:
        remoteHost - the remote hostname
        port - the port for control stream
        timeout - the length of the timeout, in milliseconds
        Throws:
        java.io.IOException - if a comms error occurs
      • CommonsNetFtpClient

        public CommonsNetFtpClient​(java.lang.String remoteHost)
                            throws java.io.IOException
        Throws:
        java.io.IOException
        See Also:
        CommonsNetFtpClient(String, int, int)
      • CommonsNetFtpClient

        public CommonsNetFtpClient​(java.lang.String remoteHost,
                                   int port)
                            throws java.io.IOException
        Throws:
        java.io.IOException
        See Also:
        CommonsNetFtpClient(String, int, int)
    • Method Detail

      • createFTPClient

        protected org.apache.commons.net.ftp.FTPClient createFTPClient()
        Description copied from class: ApacheFtpClientImpl
        Create the base commons net client.
        Specified by:
        createFTPClient in class ApacheFtpClientImpl<org.apache.commons.net.ftp.FTPClient>
        Returns:
        the actual FtpClient implementation that will be used.
      • preConnectSettings

        protected void preConnectSettings​(org.apache.commons.net.ftp.FTPClient client)
                                   throws java.io.IOException
        Specified by:
        preConnectSettings in class ApacheFtpClientImpl<org.apache.commons.net.ftp.FTPClient>
        Throws:
        java.io.IOException
      • postConnectSettings

        protected void postConnectSettings​(org.apache.commons.net.ftp.FTPClient client)
                                    throws java.io.IOException
        Specified by:
        postConnectSettings in class ApacheFtpClientImpl<org.apache.commons.net.ftp.FTPClient>
        Throws:
        java.io.IOException