Uses of Class
com.enterprisedt.net.ftp.FTPException
Packages that use FTPException
Package
Description
FileTransferClient is the key
class for edtFTPj/Free and provides basic FTP features.This package contains the classes used for asynchronous programming - primarily the XXXResult classes,
which are returned from asynchronous methods and used to provide details about the operation,
such as what file is being transferred.
Contains classes for enhanced FTP client functionality.
Contains classes for FTP scripting.
Contains classes for SFTP (FTP via SSH) client functionality.
Contains classes for FTPS (FTP over SSL) client functionality.
-
Uses of FTPException in com.enterprisedt.net.ftp
Subclasses of FTPException in com.enterprisedt.net.ftpModifier and TypeClassDescriptionclassThrown when an FTP transfer has been closed by the serverclassThrown when an FTP transfer has been cancelledclassA malformed reply was received from the serverMethods in com.enterprisedt.net.ftp that throw FTPExceptionModifier and TypeMethodDescriptionprotected voidFTPClient.abort()Abort the current actionvoidSupply account information string to the server.voidFTPClient.cancelResume()voidFTPClientInterface.cancelResume()Cancel the resume.voidFTPClient.cdup()voidFTPClientInterface.cdup()Change the remote working directory to the parent directoryvoidAsyncFileTransferClient.changeDirectory(String directoryName) Change directory on the FTP server.voidFileTransferClient.changeDirectory(String directoryName) Change directory on the FTP server.voidFileTransferClientInterface.changeDirectory(String directoryName) Change directory on the FTP server.voidSecureFileTransferClient.changeDirectory(String directoryName) Change directory on the FTP server.AsyncFileTransferClient.changeDirectoryAsync(String directoryName, AsyncCallback.ChangeDirectory callback, Object tag) Change directory on the FTP server asynchronously.voidFileTransferClient.changeToParentDirectory()Change to parent directory on the FTP server.voidFileTransferClientInterface.changeToParentDirectory()Change to parent directory on the FTP server.voidSecureFileTransferClient.changeToParentDirectory()Change to parent directory on the FTP server.AsyncFileTransferClient.changeToParentDirectoryAsync(AsyncCallback.ChangeDirectory callback, Object tag) Change directory on the FTP server asynchronously.voidvoidChange the remote working directory to that suppliedprotected voidFileTransferClient.checkConnection(boolean shouldBeConnected) Checks if the client has connected to the server and throws an exception if it hasn't.protected voidFTPClient.checkConnection(boolean shouldBeConnected) Checks if the client has connected to the server and throws an exception if it hasn't.protected voidSecureFileTransferClient.checkConnection(boolean shouldBeConnected) Checks if the client has connected to the server and throws an exception if it hasn't.protected FTPTransferTypeFTPClient.chooseTransferMode(String filename) Switch the transfer mode if requested and if necessaryvoidFileTransferClient.connect()Make a connection to the FTP server.voidFileTransferClientInterface.connect()Make a connection to the FTP server.voidFTPClient.connect()Connects to the server at the address and port number defined in the constructor.voidFTPClientInterface.connect()Connects to the server at the address and port number defined in the constructor.voidSecureFileTransferClient.connect()Make a connection to the FTP server.AsyncFileTransferClient.connectAsync(AsyncCallback.Connect callback, Object tag) Make an asynchronous connection to the FTP server.static ProFTPClientInterfaceFTPClientFactory.createClient(Protocol protocol) Create an FTP client that supports the supplied protocol.static ProFTPClientInterfaceFTPClientFactory.createClient(Protocol protocol, boolean serverValidation) Create an FTP client that supports the supplied protocol.protected voidFTPClient.createDataSocket()Set up the data socketprotected com.enterprisedt.net.ftp.internal.FTPDataSocketFTPControlSocket.createDataSocketPASV()Request a data socket be created on the server, connect to it and return our connected socket.voidFileTransferClient.createDirectory(String directoryName) Create directory on the FTP server.voidFileTransferClientInterface.createDirectory(String directoryName) Create directory on the FTP server.voidSecureFileTransferClient.createDirectory(String directoryName) Create directory on the FTP server.AsyncFileTransferClient.createDirectoryAsync(String directoryName, AsyncCallback.CreateDirectory callback, Object tag) Change directory on the FTP server asynchronously.voidvoidDelete the specified remote filevoidRecursiveOperations.delete(FTPClientInterface ftp, String remoteDir) Delete this entire remote directory and its contents, recursively going through the remote directory name suppliedvoidFileTransferClient.deleteDirectory(String directoryName) Delete directory on the FTP server.voidFileTransferClientInterface.deleteDirectory(String directoryName) Delete directory on the FTP server.voidSecureFileTransferClient.deleteDirectory(String directoryName) Delete a directory on the FTP server.voidSecureFileTransferClient.deleteDirectory(String directoryName, boolean recursive) Delete a directory on the FTP server, and optionally sub-directories.AsyncFileTransferClient.deleteDirectoryAsync(String directoryName, boolean recursive, AsyncCallback.DeleteDirectory callback, Object tag) Delete a directory on the FTP server asynchronously, and optionally sub-directories.AsyncFileTransferClient.deleteDirectoryAsync(String directoryName, AsyncCallback.DeleteDirectory callback, Object tag) Delete a directory on the FTP server asynchronously.voidFileTransferClient.deleteFile(String remoteFileName) Deletes a remote file.voidFileTransferClientInterface.deleteFile(String remoteFileName) Deletes a remote file.voidSecureFileTransferClient.deleteFile(String remoteFileName) Deletes a remote file.AsyncFileTransferClient.deleteFileAsync(String remoteFileName, AsyncCallback.DeleteFile callback, Object tag) Deletes a remote file asynchronously.voidRecursiveOperations.deleteFiles(FTPClientInterface ftp, FileFilter filter, boolean recurse) Delete all the files in the current directory (and its subdirectories if indicated) that match the supplied filter, recursively going through the remote directories.voidRecursiveOperations.deleteFiles(FTPClientInterface ftp, String remoteDir, FileFilter filter) Delete all the files in this directory (and its subdirectories) that match the supplied filter, recursively going through the remote directories.voidRecursiveOperations.deleteFiles(FTPClientInterface ftp, String remoteDir, FileFilter filter, boolean recurse) Delete all the files in this directory (and its subdirectories if recurse is true) that match the supplied filter, recursively going through the remote directories.voidRecursiveOperations.deleteFiles(FTPClientInterface ftp, String remoteDir, String wildcard) Delete all the files in this directory (and its subdirectories) that match the supplied wildcard, recursively going through the remote directories.voidRecursiveOperations.deleteFilesCurrentDir(FTPClientInterface ftp, FileFilter filter) Delete all the files in this directory (not subdirectories) that match the supplied filter.voidSecureFileTransferClient.deleteMultipleFiles(FileFilter filter) Deletes remote files in the current directory that match the supplied filename filtervoidSecureFileTransferClient.deleteMultipleFiles(String wildcard) Deletes remote files in the current directory that match the supplied wildcardvoidSecureFileTransferClient.deleteMultipleFiles(String remoteDirectory, FileFilter filter, boolean recursive) Deletes remote files in the current directory.voidSecureFileTransferClient.deleteMultipleFiles(String remoteDirectory, String wildcard, boolean recursive) Deletes remote files in the current directory.AsyncFileTransferClient.deleteMultipleFilesAsync(FileFilter filter, AsyncCallback.DeleteMultipleFiles callback, Object tag) Deletes remote files in the current directory that match the supplied wildcardAsyncFileTransferClient.deleteMultipleFilesAsync(String wildcard, AsyncCallback.DeleteMultipleFiles callback, Object tag) Deletes remote files in the current directory that match the supplied wildcardAsyncFileTransferClient.deleteMultipleFilesAsync(String remoteDirectory, FileFilter filter, boolean recursive, AsyncCallback.DeleteMultipleFiles callback, Object tag) Deletes remote files that match the supplied wildcard in the supplied remote directory asynchronously.AsyncFileTransferClient.deleteMultipleFilesAsync(String remoteDirectory, String wildcard, boolean recursive, AsyncCallback.DeleteMultipleFiles callback, Object tag) Deletes remote files that match the supplied wildcard in the supplied remote directory asynchronously.String[]FTPClient.dir()String[]String[]String[]FTPClientInterface.dir()List current directory's contents as an array of strings of filenames.String[]List a directory's contents as an array of strings of filenames.String[]List a directory's contents as an array of strings.FTPFile[]FTPClient.dirDetails(String dirname) voidFTPClient.dirDetails(String dirname, DirectoryListCallback lister) FTPFile[]FTPClientInterface.dirDetails(String dirname) List a directory's contents as an array of FTPFile objects.voidFTPClientInterface.dirDetails(String dirname, DirectoryListCallback lister) List a directory's contents via a callback.FTPFile[]RecursiveOperations.dirDetails(FTPClientInterface ftp, String remoteDir) List this entire remote directory and its contents, including children.FTPFile[]FTPClient.dirDetailsM(String dirname) Uses the MLSD command to find out details about the named directory.FTPFile[]FileTransferClient.directoryList()List the current directory on the FTP server.FTPFile[]FileTransferClient.directoryList(String directoryName) List a directory on the FTP server.voidFileTransferClient.directoryList(String directoryName, DirectoryListCallback lister) List a directory on the FTP server.FTPFile[]FileTransferClientInterface.directoryList()List the current directory on the FTP server.FTPFile[]FileTransferClientInterface.directoryList(String directoryName) List a directory on the FTP server.voidFileTransferClientInterface.directoryList(String directoryName, DirectoryListCallback lister) List a directory on the FTP server.FTPFile[]SecureFileTransferClient.directoryList()List the current directory on the FTP server.FTPFile[]SecureFileTransferClient.directoryList(String directoryName) List a directory on the FTP server.voidSecureFileTransferClient.directoryList(String directoryName, DirectoryListCallback lister) List a directory on the FTP server, calling the user-supplied callback for each entry.AsyncFileTransferClient.directoryListAsync(String directoryName, AsyncCallback.DirectoryList callback, Object tag) List a directory on the FTP server asynchronously.String[]FileTransferClient.directoryNameList()List the names of files and directories in the current directory on the FTP server.String[]FileTransferClient.directoryNameList(String directoryName, boolean isLongListing) List the names of files and directories of a directory on the FTP server.String[]FileTransferClientInterface.directoryNameList()List the names of files and directories in the current directory on the FTP server.String[]FileTransferClientInterface.directoryNameList(String directoryName, boolean isLongListing) List the names of files and directories of a directory on the FTP server.String[]SecureFileTransferClient.directoryNameList()List the names of files and directories in the current directory on the FTP server.String[]SecureFileTransferClient.directoryNameList(String directoryName, boolean isLongListing) List a directory on the FTP server.AsyncFileTransferClient.directoryNameListAsync(String directoryName, boolean isLongListing, AsyncCallback.DirectoryNameList callback, Object tag) List a directory on the FTP server asynchronously.voidAdvancedSSHSettings.disableAllAlgorithms()Disables all algorithms.voidAdvancedSSHSettings.disableAllAlgorithms(int algorithmType) Disables all algorithms of a particular type.voidFileTransferClient.disconnect()Disconnect from the FTP server.voidFileTransferClient.disconnect(boolean immediate) Disconnect from the FTP server.voidFileTransferClientInterface.disconnect()Disconnect from the FTP server.voidFileTransferClientInterface.disconnect(boolean immediate) Disconnect from the FTP server.voidSecureFileTransferClient.disconnect()Disconnect from the FTP server.voidSecureFileTransferClient.disconnect(boolean immediate) Disconnect from the FTP server immediately.AsyncFileTransferClient.disconnectAsync(boolean immediate, AsyncCallback.Disconnect callback, Object tag) Disconnect from the FTP server asynchronously.AsyncFileTransferClient.disconnectAsync(AsyncCallback.Disconnect callback, Object tag) Disconnect from the FTP server asynchronously.byte[]FileTransferClient.downloadByteArray(String remoteFileName) Download a file from the FTP server into a byte array.byte[]FileTransferClientInterface.downloadByteArray(String remoteFileName) Download a file from the FTP server into a byte array.byte[]SecureFileTransferClient.downloadByteArray(String remoteFileName) Download a file from the FTP server into a byte array.AsyncFileTransferClient.downloadByteArrayAsync(String remoteFileName, AsyncCallback.DownloadByteArray callback, Object tag) Download a file from the FTP server asynchronously to a byte arrayvoidFileTransferClient.downloadFile(String localFileName, String remoteFileName) Download a file from the FTP server .voidFileTransferClient.downloadFile(String localFileName, String remoteFileName, WriteMode writeMode) Download a file from the FTP server .voidFileTransferClientInterface.downloadFile(String localFileName, String remoteFileName) Download a file from the FTP server .voidFileTransferClientInterface.downloadFile(String localFileName, String remoteFileName, WriteMode writeMode) Download a file from the FTP server .voidSecureFileTransferClient.downloadFile(String localFileName, String remoteFileName) Download a file from the FTP server .voidSecureFileTransferClient.downloadFile(String localFileName, String remoteFileName, WriteMode writeMode) Download a file from the FTP server .AsyncFileTransferClient.downloadFileAsync(String localFileName, String remoteFileName, WriteMode writeMode, AsyncCallback.DownloadFile callback, Object tag) Download a file from the FTP server asynchronously.voidSecureFileTransferClient.downloadMultiple(String localDir, FileFilter filter) Downloads remote files to the supplied local directory that match the supplied wildcard from the current remote directory.voidSecureFileTransferClient.downloadMultiple(String localDir, String wildcard) Downloads remote files to the supplied local directory that match the supplied wildcard from the current remote directory.voidSecureFileTransferClient.downloadMultiple(String localDir, String remoteDir, FileFilter filter, boolean recursive) Downloads remote files to the supplied local directory that match the supplied FileFilter from the current remote directory.voidSecureFileTransferClient.downloadMultiple(String localDir, String remoteDir, String wildcard, boolean recursive) Downloads remote files to the supplied local directory that match the supplied wildcard from the current remote directory.AsyncFileTransferClient.downloadMultipleAsync(String localDir, FileFilter filter, AsyncCallback.DownloadMultiple callback, Object tag) Downloads remote files to the supplied local directory that match the supplied wildcard from the current remote directory.AsyncFileTransferClient.downloadMultipleAsync(String localDir, String wildcard, AsyncCallback.DownloadMultiple callback, Object tag) Downloads remote files to the supplied local directory that match the supplied wildcard from the current remote directory.AsyncFileTransferClient.downloadMultipleAsync(String localDir, String remoteDir, FileFilter filter, boolean recursive, AsyncCallback.DownloadMultiple callback, Object tag) Downloads remote files to the supplied local directory that match the supplied wildcard from the current remote directory.AsyncFileTransferClient.downloadMultipleAsync(String localDir, String remoteDir, String wildcard, boolean recursive, AsyncCallback.DownloadMultiple callback, Object tag) Downloads remote files to the supplied local directory that match the supplied wildcard from the current remote directory.FileTransferClient.downloadStream(String remoteFileName) Download a file from the FTP server as a stream.FileTransferClientInterface.downloadStream(String remoteFileName) Download a file from the FTP server as a stream.SecureFileTransferClient.downloadStream(String remoteFileName) Download a file from the FTP server as a stream.AsyncFileTransferClient.downloadStreamAsync(String remoteFileName, AsyncCallback.DownloadStream callback, Object tag) Download a file from the FTP server as a stream, asynchronously.static voidFileTransferClient.downloadURLFile(String localFileName, String ftpURL) Downloads the given file to the given FTP URL.static voidSecureFileTransferClient.downloadURLFile(String localFileName, String ftpURL) Downloads the given file to the given FTP URL.static FileTransferInputStreamFileTransferClient.downloadURLStream(String ftpURL) Open an InputStream for the given FTP URL.static FileTransferInputStreamSecureFileTransferClient.downloadURLStream(String ftpURL) Open an InputStream for the given FTP URL.FileTransferClient.executeCommand(String command) Request that the remote server execute the literal command supplied.FileTransferClientInterface.executeCommand(String command) Request that the remote server execute the literal command supplied.FTPClient.executeCommand(String command) Request that the remote server execute the literal command supplied.FTPClientInterface.executeCommand(String command) Request that the remote server execute the literal command supplied.SecureFileTransferClient.executeCommand(String command) Request that the remote server execute the literal command supplied.AsyncFileTransferClient.executeCommandAsync(String command, AsyncCallback.ExecuteCommand callback, Object tag) Request that the remote server execute the literal command supplied.booleanDetermine if a remote file exists.booleanDetermine if a remote file exists.booleanDeprecated.Use existsFile(String).booleanDoes the named file exist in the current server directory?booleanDetermine if a remote file exists.AsyncFileTransferClient.existsAsync(String remoteFileName, AsyncCallback.Exists callback, Object tag) Determine asynchronously if a remote file exists.booleanFTPClient.existsDirectory(String remoteDirectory) Use to find out if a directory exists or not.booleanSecureFileTransferClient.existsDirectory(String remoteDir) Determine if a remote directory exists.booleanFTPClient.existsFile(String remoteFile) Use to find out if a file exists or not.String[]FTPClient.features()Get the server supplied featuresFTPClient.fileDetails(String name) Uses the MLST command to find out details about the named file.voidFTPClient.get(OutputStream destStream, String remoteFile) byte[]voidvoidFTPClientInterface.get(OutputStream destStream, String remoteFile) Get data from the FTP server.byte[]Get data from the FTP server.voidGet data from the FTP server.voidRecursiveOperations.get(FTPClientInterface ftp, String localDir, String remoteDir) Gets this entire remote directory and its contents, recursively going through the remote directory name supplied.voidRecursiveOperations.get(FTPClientInterface ftp, String localDir, String remoteDir, FileFilter filter) Gets this entire remote directory and its contents, recursively going through the remote directory name supplied.voidRecursiveOperations.get(FTPClientInterface ftp, String localDir, String remoteDir, FileFilter filter, boolean recurse) Gets this entire remote directory and its contents, recursively (if recurse is true) going through the remote directory name supplied.voidRecursiveOperations.get(FTPClientInterface ftp, String localDir, String remoteDir, String wildcard) Gets this entire remote directory and its contents, recursively going through the remote directory name supplied.voidRecursiveOperations.getFilesFromCurrentDir(FTPClientInterface ftp, String localDir, FileFilter filter) Gets all files matching the supplied filter from current remote directory into supplied local dir.FileTransferClient.getModifiedTime(String remoteFileName) Get the modified-time of a remote file.FileTransferClientInterface.getModifiedTime(String remoteFileName) Get the modified-time of a remote file.SecureFileTransferClient.getModifiedTime(String remoteFileName) Get the modified-time of a remote file.AsyncFileTransferClient.getModifiedTimeAsync(String remoteFileName, AsyncCallback.GetModifiedTime callback, Object tag) Get the modified-time of a remote file asynchronously.FileTransferClient.getRemoteDirectory()Get the current remote directory.FileTransferClientInterface.getRemoteDirectory()Get the current remote directory.longGet the size of a remote file.longGet the size of a remote file.longGet the size of a remote file.AsyncFileTransferClient.getSizeAsync(String remoteFileName, AsyncCallback.Size callback, Object tag) Get the size of a remote file asynchronously.FileTransferClient.getSystemType()Get a string that represents the remote system that the client is logged into.FileTransferClientInterface.getSystemType()Get a string that represents the remote system that the client is logged into.SecureFileTransferClient.getSystemType()Get a string that represents the remote system that the client is logged into.AsyncFileTransferClient.getSystemTypeAsync(AsyncCallback.GetSystemType callback, Object tag) Get a string that represents the remote system that the client is logged into.Get the help text for the specified commandprotected voidRequest to the server that the get is set upprotected StringRequest the server to set up the putvoidFTPClient.keepAlive()Tries to keep the current connection alive by sending an innocuous command to signal that the client is still activevoidFTPClientInterface.keepAlive()Tries to keep the current connection alive by some means, usually by sending an innocuous commmand.Deprecated.As of FTP 1.1, replaced byFTPClient.dir(String)Deprecated.As of FTP 1.1, replaced byFTPClient.dir(String,boolean)voidSecureFileTransferClient.loadSSHServerValidation(String knownHosts) Load the public keys that the server public key will be validated against.voidSecureFileTransferClient.loadSSLServerValidation(String rootCertificatesPath) Load the root certificates that the server certificate will be validated against.voidLogin into an account on the FTP server.voidLogin into an account on the FTP server.voidFileTransferClient.manualLogin()Perform a manual login using the credentials that have been set.voidvoidCreate the specified remote working directoryGet modification time for a remote file.voidFTPClient.noOp()Send the NOOP messagevoidFTPClient.noOperation()Send a "no operation" message that does nothing.voidSupplies the password for a previously supplied username to log into the FTP server.protected voidFTPClient.postTransferChecks(byte[] localBytes, String remotePath, FTPTransferType transferType, boolean append) Can be overridden by subclasses to do any necessary post transfer checking.protected voidFTPClient.postTransferChecks(String localPath, String remotePath, FTPTransferType transferType, boolean append) Can be overridden by subclasses to do any necessary post transfer checking.protected static voidFileTransferClient.prepareURLTransfer(URL url, FileTransferClientInterface client) FTPClient.put(InputStream srcStream, String remoteFile) FTPClient.put(InputStream srcStream, String remoteFile, boolean append) Put data onto the FTP server.Put data onto the FTP server.FTPClientInterface.put(InputStream srcStream, String remoteFile) Put a stream of data onto the FTP server.FTPClientInterface.put(InputStream srcStream, String remoteFile, boolean append) Put a stream of data onto the FTP server.Put a local file onto the FTP server.Put a local file onto the FTP server.voidRecursiveOperations.put(FTPClientInterface ftp, String localDir, String remoteDir) Puts this entire directory and its contents, recursively going through the local directory supplied (which can be relative or absolute.voidRecursiveOperations.put(FTPClientInterface ftp, String localDir, String remoteDir, FileFilter filter) Puts this entire directory and its contents, recursively going through the local directory supplied (which can be relative or absolute.voidRecursiveOperations.put(FTPClientInterface ftp, String localDir, String remoteDir, FileFilter filter, boolean recurse) Puts this entire directory and its contents.voidRecursiveOperations.put(FTPClientInterface ftp, String localDir, String remoteDir, String wildcard) Puts this entire directory and its contents, recursively going through the local directory supplied (which can be relative or absolute.voidRecursiveOperations.putFilesIntoCurrentDir(FTPClientInterface ftp, String localDir, FileFilter filter) Puts all files from supplied local dir matching the supplied filter into the current remote directory.FTPClient.pwd()FTPClientInterface.pwd()Get the current remote working directoryvoidFTPClient.quit()voidFTPClientInterface.quit()Quit the FTP sessionvoidFTPClient.quitImmediately()voidFTPClientInterface.quitImmediately()Quit the FTP session immediately.Issue arbitrary ftp commands to the FTP server.Issue arbitrary ftp commands to the FTP server.protected voidReconnect to the servervoidRename a remote file or directory.voidRename a remote file or directory.voidvoidRename a file or directoryvoidRename a remote file or directory.AsyncFileTransferClient.renameAsync(String renameFromName, String renameToName, AsyncCallback.Rename callback, Object tag) Rename a remote file asynchronously.voidFTPClient.resetTransferMode(FTPTransferType previousType) Reset the transfer mode back to what it should be, if it has changed.voidFTPClient.restart(long size) Issue the RESTart command to the remote server.voidFTPClient.resume()voidFTPClientInterface.resume()Make the next file transfer (put or get) resume.voidFTPClient.resumeNextDownload(long offset) voidFTPClientInterface.resumeNextDownload(long offset) Make the next download resume at a specific point.voidvoidDelete the specified remote working directoryFTPClient.sendCommand(String command) Send a command to the server and get the replyFTPControlSocket.sendCommand(String command) Send a command to the FTP server and return the server's reply as a structured reply objectvoidFTPClient.sendServerWakeup()Wake up the server during a transfer to prevent a timeout from occuring.voidFTPClient.setActiveIPAddress(String activeIP) We can force PORT to send a fixed IP address, which can be useful with certain NAT configurations.voidFTPClient.setActivePortRange(int lowest, int highest) Force a certain range of ports to be used in active mode.voidAdvancedSSHSettings.setAlgorithmEnabled(SSHFTPAlgorithm algorithm, boolean enable) Enable/disable the given algorithm.voidAdvancedSSHSettings.setAuthenticationType(SSHAuthenticationType sshAuthenticationType) Set the authentication type to be used.voidAdvancedSSHSettings.setCompressionDelayed(boolean compressionDelayed) Set flag to force compression delayed until after authentication (if indeed compression is to be used).voidAdvancedFTPSettings.setConnectMode(FTPConnectMode mode) Set the data transfer mode to either active (PORT) or passive (PASV).voidAsyncFileTransferClient.setContentType(FTPTransferType type) Set the transfer type, either ASCII or binary.voidFileTransferClient.setContentType(FTPTransferType type) Set the transfer type for all connections, either ASCII or binary.voidFileTransferClientInterface.setContentType(FTPTransferType type) Set the transfer type for all connections, either ASCII or binary.voidSecureFileTransferClient.setContentType(FTPTransferType type) Set the transfer type for all connections, either ASCII or binary.voidFTPClient.setControlEncoding(String controlEncoding) Set the control socket's encoding.voidFTPClientInterface.setControlEncoding(String controlEncoding) Set the encoding used on the control channel.voidFTPClient.setControlPort(int controlPort) Deprecated.UseFTPClientInterface.setRemotePort(int)instead.protected voidFTPControlSocket.setDataPort(InetAddress host, int portNo) Sets the data port on the server, that is, sends a PORT command.voidAdvancedSSHSettings.setDisableChModAfterCreateDir(boolean disableChmodAfterCreateDir) Set the permission change made after creating a directory (which is done to ensure the permissions are correct) to disabled or enabled.voidAdvancedSSHSettings.setDisableChModAfterPut(boolean disableChmodAfterPut) Set the permission change made after creating a file (which is done to ensure the permissions are correct) to disabled or enabled.voidAdvancedSSHSettings.setDisableWaitForChannelClose(boolean disableWaitForChannelClose) Disables waiting for an acknowledgement from the server when the client has requested that a channel be closed.voidSecureFileTransferClient.setInitialRemoteDirectory(String directory) Set the initial remote directory that all connections change to immediately on connection.voidSecureFileTransferClient.setKeepAliveEnabled(boolean enabled) Change the connection pool keep alive setting, switching it on or off.voidAdvancedSSHSettings.setMaxPacketSize(int maxPacketSize) Set the maximum packet size.voidAdvancedSSHSettings.setMaxQueuedReadRequests(int maxQueuedReadRequests) In SFTP, files are read block-by-block.voidFileTransferClient.setModifiedTime(String remoteFileName, Date modifiedTime) Set the modified-time of a remote file.voidFileTransferClientInterface.setModifiedTime(String remoteFileName, Date modifiedTime) Set the modified-time of a remote file.voidSecureFileTransferClient.setModifiedTime(String remoteFileName, Date modifiedTime) Set the modified-time of a remote file.AsyncFileTransferClient.setModifiedTimeAsync(String remoteFileName, Date modifiedTime, AsyncCallback.SetModifiedTime callback, Object tag) Set the modified-time of a remote file asynchronously.voidFTPClient.setModTime(String remoteFile, Date modTime) voidFTPClientInterface.setModTime(String path, Date modTime) Set the last modified time (UTC) for the supplied file.voidFileTransferClient.setNetworkBufferSize(int networkBufferSize) Set the size of the network buffers (SO_SNDBUF and SO_RCVBUF).voidFileTransferClientInterface.setNetworkBufferSize(int networkBufferSize) Set the size of the network buffers (SO_SNDBUF and SO_RCVBUF).voidSecureFileTransferClient.setNetworkBufferSize(int networkBufferSize) Set the size of the network buffers (SO_SNDBUF and SO_RCVBUF).voidAdvancedSSHSettings.setParallelWriteMode(boolean parallelWriteMode) Set parallel write mode on or off.voidFileTransferClient.setPassword(String password) Set the password of the user to log in with.voidFileTransferClientInterface.setPassword(String password) Set the password of the user to log in with.voidSecureFileTransferClient.setPassword(String password) Set the password of the user to log in with.voidSecureFileTransferClient.setPermissions(String remotePath, int permissions) Set the permissions of the supplied file or directory.AsyncFileTransferClient.setPermissionsAsync(String remotePath, int permissions, AsyncCallback.SetPermissions callback, Object tag) Set the permissions of the supplied file or directory.voidDeprecated.voidAdvancedSSHSettings.setPortsInKnownHosts(boolean portsInKnownHosts) Change whether or not non-standard port numbers are used in known_hosts files.voidAdvancedSSHSettings.setPrivateKeyBytes(byte[] privateKeyBytes) Reads the client's private key from the given byte-array.voidAdvancedSSHSettings.setPrivateKeyFile(String privateKeyFileName) Read the client's private key file, used for client authentication if SSHAuthenticationType.PUBLIC_KEY is being used.voidAdvancedSSHSettings.setPrivateKeyFilePassphrase(String privateKeyFilePassphrase) Set the passphrase for the private key file.voidAdvancedSSHSettings.setPrivateKeyInputStream(InputStream privateKeyInputStream) Read the client's private key from the given InputStream.voidSecureFileTransferClient.setProtocol(Protocol protocol) Set the current protocol to be used.voidFTPClient.setRemoteAddr(InetAddress remoteAddr) Set the remote addressvoidAdvancedSSHSettings.setRemoteEOL(String remoteEOL) Set a remoteEOL to be forced, irrespective of what is detected from server information.voidFileTransferClient.setRemoteHost(String remoteHost) Set the IP address or name of the remote host This may only be done if the client is not already connected to the server.voidFileTransferClientInterface.setRemoteHost(String remoteHost) Set the IP address or name of the remote host This may only be done if the client is not already connected to the server.voidFTPClient.setRemoteHost(String remoteHost) voidFTPClientInterface.setRemoteHost(String remoteHost) Set the IP address or name of the remote host This may only be done if the client is not already connected to the server.voidSecureFileTransferClient.setRemoteHost(String remoteHost) Set the IP address or name of the remote host This may only be done if the client is not already connected to the server.voidFileTransferClient.setRemotePort(int remotePort) Set the port to connect to on the remote server.voidFileTransferClientInterface.setRemotePort(int remotePort) Set the port to connect to on the remote server.voidFTPClient.setRemotePort(int remotePort) Set the control to connect to on the remote server.voidFTPClientInterface.setRemotePort(int remotePort) Set the port to connect to on the remote server.voidSecureFileTransferClient.setRemotePort(int remotePort) Set the port to connect to on the remote server.voidSecureFileTransferClient.setServerValidationEnabled(boolean enabled) Change the server validation setting, switching it on or off.voidAdvancedSSHSettings.setSSHAuthPrompts(SSHAuthPrompt[] authPrompts) Set the array of authentication prompts that are to be used for keyboard-interactive authentication.voidFileTransferClient.setTimeout(int timeout) Set the timeout for socket connections.voidFileTransferClientInterface.setTimeout(int timeout) Set the timeout for socket connections.voidFTPClientInterface.setTimeout(int millis) Set the timeout on the underlying sockets and other resources that may be used.voidSecureFileTransferClient.setTimeout(int timeout) Set the timeout for socket connections.voidFTPClient.setType(FTPTransferType type) Set the transfer typevoidFTPClientInterface.setType(FTPTransferType type) Set the transfer typevoidFileTransferClient.setUserName(String userName) Set the name of the user to log in with.voidFileTransferClientInterface.setUserName(String userName) Set the name of the user to log in with.voidSecureFileTransferClient.setUserName(String userName) Set the name of the user to log in with.booleanRun a site-specific command on the server.longlongGet the size of a remote file.FTPClient.stat()Sends stat message to enquire about the status of a transfer.FTPClient.system()Get the type of the OS at the serverFTPClientInterface.system()Get a string representing the remote systemvoidFXPTransfer.transferFile(String sourceFile, String destFile) Transfer a file between FTP servers using FXP.SecureFileTransferClient.uploadByteArray(byte[] bytes, String remoteFileName, WriteMode writeMode) Upload a byte array to the FTP server.AsyncFileTransferClient.uploadByteArrayAsync(byte[] bytes, String remoteFileName, WriteMode writeMode, AsyncCallback.UploadByteArray callback, Object tag) Upload a byte array to the FTP server asynchronously.FileTransferClient.uploadFile(String localFileName, String remoteFileName) Upload a file to the FTP server.FileTransferClient.uploadFile(String localFileName, String remoteFileName, WriteMode writeMode) Upload a file to the FTP server.FileTransferClientInterface.uploadFile(String localFileName, String remoteFileName) Upload a file to the FTP server.FileTransferClientInterface.uploadFile(String localFileName, String remoteFileName, WriteMode writeMode) Upload a file to the FTP server.SecureFileTransferClient.uploadFile(String localFileName, String remoteFileName) Upload a file to the FTP server.SecureFileTransferClient.uploadFile(String localFileName, String remoteFileName, WriteMode writeMode) Upload a file to the FTP server.AsyncFileTransferClient.uploadFileAsync(String localFileName, String remoteFileName, AsyncCallback.UploadFile callback, Object tag) Upload a file to the FTP server asynchronously.AsyncFileTransferClient.uploadFileAsync(String localFileName, String remoteFileName, WriteMode writeMode, AsyncCallback.UploadFile callback, Object tag) Upload a file to the FTP server asynchronously.voidSecureFileTransferClient.uploadMultiple(String localDir, FileFilter filter) Uploads local files from the supplied local directory that match the supplied FileFilter into the current remote directory.voidSecureFileTransferClient.uploadMultiple(String localDir, String wildcard) Uploads local files from the supplied local directory that match the supplied wildcard into the current remote directory.voidSecureFileTransferClient.uploadMultiple(String localDir, String remoteDir, FileFilter filter, boolean recursive) Uploads local files from the supplied local directory that match the supplied wildcard into the supplied remote directory.voidSecureFileTransferClient.uploadMultiple(String localDir, String remoteDir, String wildcard, boolean recursive) Uploads local files from the supplied local directory that match the supplied wildcard into the supplied remote directory.AsyncFileTransferClient.uploadMultipleAsync(String localDir, FileFilter filter, AsyncCallback.UploadMultiple callback, Object tag) Uploads local files from the supplied local directory that match the supplied FileFilter into the current remote directory.AsyncFileTransferClient.uploadMultipleAsync(String localDir, String wildcard, AsyncCallback.UploadMultiple callback, Object tag) Uploads local files from the supplied local directory that match the supplied wildcard into the current remote directory.AsyncFileTransferClient.uploadMultipleAsync(String localDir, String remoteDir, FileFilter filter, boolean recursive, AsyncCallback.UploadMultiple callback, Object tag) Uploads local files from the supplied local directory that match the supplied wildcard into the supplied remote directory.AsyncFileTransferClient.uploadMultipleAsync(String localDir, String remoteDir, String wildcard, boolean recursive, AsyncCallback.UploadMultiple callback, Object tag) Uploads local files from the supplied local directory that match the supplied wildcard into the supplied remote directory.FileTransferClient.uploadStream(String remoteFileName) Upload a file to the FTP server by writing to a stream.FileTransferClient.uploadStream(String remoteFileName, WriteMode writeMode) Upload a file to the FTP server by writing to a stream.FileTransferClientInterface.uploadStream(String remoteFileName) Upload a file to the FTP server by writing to a stream.FileTransferClientInterface.uploadStream(String remoteFileName, WriteMode writeMode) Upload a file to the FTP server by writing to a stream.SecureFileTransferClient.uploadStream(String remoteFileName) Upload a file to the FTP server by writing to a stream.SecureFileTransferClient.uploadStream(String remoteFileName, WriteMode writeMode) Upload a file to the FTP server by writing to a stream.AsyncFileTransferClient.uploadStreamAsync(String remoteFileName, AsyncCallback.UploadStream callback, Object tag) Upload a file to the FTP server by writing to a stream, asynchronously.AsyncFileTransferClient.uploadStreamAsync(String remoteFileName, WriteMode writeMode, AsyncCallback.UploadStream callback, Object tag) Upload a file to the FTP server by writing to a stream, asynchronously.static voidFileTransferClient.uploadURLFile(String localFileName, String ftpURL) Uploads the given file to the given FTP URL.static voidSecureFileTransferClient.uploadURLFile(String localFileName, String ftpURL) Uploads the given file to the given FTP URL.static FileTransferOutputStreamFileTransferClient.uploadURLStream(String ftpURL) Open an OutputStream for the given FTP URL.static FileTransferOutputStreamSecureFileTransferClient.uploadURLStream(String ftpURL) Open an OutputStream for the given FTP URL.voidSupply the user name to log into an account on the FTP server.voidFTPClient.validateReply(FTPReply reply, String expectedReplyCode) Validate an FTPReplyvoidFTPClient.validateReply(FTPReply reply, String[] expectedReplyCodes) Validate an FTPReplyFTPControlSocket.validateReply(FTPReply reply, String expectedReplyCode) Validate the response the host has supplied against the expected reply.FTPControlSocket.validateReply(FTPReply reply, String[] expectedReplyCodes) Validate the response the host has supplied against the expected reply.FTPControlSocket.validateReply(String reply, String[] expectedReplyCodes) Validate the response the host has supplied against the expected reply.voidFTPClient.validateTransfer()Validate that the put() or get() was successful.protected voidFTPClient.validateTransferOnError(IOException ex) Validate a transfer when an error has occurred on the data channel.Constructors in com.enterprisedt.net.ftp that throw FTPExceptionModifierConstructorDescriptionAbstractFTPInputStream(FTPClient client, String remoteFile) Constructor.Deprecated.use setter methods to set propertiesDeprecated.use setter methods to set propertiesDeprecated.use setter methods to set propertiesDeprecated.use setter methods to set propertiesFTPClient(InetAddress remoteAddr) Deprecated.use setter methods to set propertiesFTPClient(InetAddress remoteAddr, int controlPort) Deprecated.use setter methods to set propertiesFTPClient(InetAddress remoteAddr, int controlPort, int timeout) Deprecated.use setter methods to set propertiesFTPClient(InetAddress remoteAddr, int controlPort, int timeout, String encoding) Deprecated.use setter methods to set propertiesprotectedFTPControlSocket(InetAddress remoteAddr, int controlPort, int timeout, String encoding, FTPMessageListener messageListener) Constructor.protectedFTPControlSocket(InetAddress remoteAddr, StreamSocket controlSock, int timeout, String encoding, FTPMessageListener messageListener) Constructs a newFTPControlSocketusing the givenSocketobject.FTPFileFactory(String system) ConstructorFTPInputStream(FTPClient client, String remoteFile) Constructor.FTPInputStream(FTPClient client, String remoteFile, long offset) Constructor.FTPOutputStream(FTPClient client, String remoteFile) Constructor.FTPOutputStream(FTPClient client, String remoteFile, boolean append) Constructor. -
Uses of FTPException in com.enterprisedt.net.ftp.async
Subclasses of FTPException in com.enterprisedt.net.ftp.asyncModifier and TypeClassDescriptionclassThis exception is thrown when an asynchronous operation is cancelled by the user before it has been scheduled to run.classThis exception is thrown when an asynchronous operation is interrupted by the user while it is running (rather than being cancelled before it has been scheduled to run).Methods in com.enterprisedt.net.ftp.async that throw FTPExceptionModifier and TypeMethodDescriptionbooleanAsyncResult.cancelTask()Cancel the asynchronous task that this result is for.booleanConnectResult.cancelTask()Cancel the asynchronous task that this result is for.voidChangeDirectoryResult.endAsync()This method is called to complete the asynchronous operation.voidConnectResult.endAsync()This method is called to complete the asynchronous operation.voidCreateDirectoryResult.endAsync()This method is called to complete the asynchronous operation.voidDeleteDirectoryResult.endAsync()voidDeleteFileResult.endAsync()This method is called to complete the asynchronous operation.voidDeleteMultipleFilesResult.endAsync()This method is called to complete the asynchronous operation.voidDirectoryListCallbackResult.endAsync()This method is called to complete the asynchronous operation.FTPFile[]DirectoryListResult.endAsync()This method is called to complete the asynchronous operation.String[]DirectoryNameListResult.endAsync()This method is called to complete the asynchronous operation.voidDisconnectResult.endAsync()This method is called to complete the asynchronous operation.byte[]DownloadByteArrayResult.endAsync()This method is called to complete the asynchronous operation.ExecuteCommandResult.endAsync()This method is called to complete the asynchronous operation.voidExistsResult.endAsync()This method is called to complete the asynchronous operation.GetSystemTypeResult.endAsync()This method is called to complete the asynchronous operation.ModifiedTimeResult.endAsync()voidPermissionsResult.endAsync()voidRenameResult.endAsync()longSizeResult.endAsync()voidTransferFileResult.endAsync()This method is called to complete the asynchronous operation.voidTransferMultipleResult.endAsync()This method is called to complete the asynchronous operation.voidUploadByteArrayResult.endAsync()This method is called to complete the asynchronous operation.protected voidAsyncResult.endAsyncInternal()Internal method that returns when the async method is completed.voidAsyncCallback.ChangeDirectory.onChangeDirectory(ChangeDirectoryResult result) voidAsyncCallback.ExecuteCommand.onCommandExecuted(ExecuteCommandResult result) voidAsyncCallback.Connect.onConnect(ConnectResult result) voidAsyncCallback.CreateDirectory.onCreateDirectory(CreateDirectoryResult result) voidAsyncCallback.DeleteDirectory.onDeleteDirectory(DeleteDirectoryResult result) voidAsyncCallback.DeleteFile.onDeleteFile(DeleteFileResult result) voidAsyncCallback.DeleteMultipleFiles.onDeleteMultipleFiles(DeleteMultipleFilesResult result) voidAsyncCallback.DirectoryList.onDirectoryListed(DirectoryListResult result) voidAsyncCallback.DirectoryListCallback.onDirectoryListed(DirectoryListCallbackResult result) voidAsyncCallback.DirectoryNameList.onDirectoryListed(DirectoryNameListResult result) voidAsyncCallback.Disconnect.onDisconnect(DisconnectResult result) voidAsyncCallback.DownloadByteArray.onDownloadByteArray(DownloadByteArrayResult result) voidAsyncCallback.DownloadFile.onDownloadFile(DownloadFileResult result) voidAsyncCallback.DownloadStream.onDownloadingStream(FileTransferInputStream inStr, DownloadStreamResult result) voidAsyncCallback.DownloadMultiple.onDownloadMultiple(DownloadMultipleResult result) voidAsyncCallback.DownloadStream.onDownloadStream(DownloadStreamResult result) voidAsyncCallback.Exists.onExists(ExistsResult result) voidAsyncCallback.GetModifiedTime.onGetModifiedTime(ModifiedTimeResult result) voidAsyncCallback.Rename.onRename(RenameResult result) voidAsyncCallback.SetModifiedTime.onSetModifiedTime(ModifiedTimeResult result) voidAsyncCallback.SetPermissions.onSetPermissions(PermissionsResult result) voidAsyncCallback.Size.onSize(SizeResult result) voidAsyncCallback.GetSystemType.onSystemType(GetSystemTypeResult result) voidAsyncCallback.UploadByteArray.onUploadByteArray(UploadByteArrayResult result) voidAsyncCallback.UploadFile.onUploadFile(UploadFileResult result) voidAsyncCallback.UploadStream.onUploadingStream(FileTransferOutputStream outStr, UploadStreamResult result) voidAsyncCallback.UploadMultiple.onUploadMultiple(UploadMultipleResult result) voidAsyncCallback.UploadStream.onUploadStream(UploadStreamResult result) -
Uses of FTPException in com.enterprisedt.net.ftp.pro
Subclasses of FTPException in com.enterprisedt.net.ftp.proModifier and TypeClassDescriptionclassThrown an integrity check failsMethods in com.enterprisedt.net.ftp.pro that throw FTPExceptionModifier and TypeMethodDescriptionvoidProFTPClient.connect()Connects to the server at the address and port number defined in the constructor.protected com.enterprisedt.net.ftp.internal.FTPDataSocketProFTPControlSocket.createDataSocketPASV()Request a data socket be created on the server, connect to it and return our connected socket.voidProFTPClient.enableModeZCompression()Set MODE Z so that all subsequent transfers are compressedProFTPClient.getRemoteCRC(String path) Get the CRC-32 checksum for the named remote file.protected voidProFTPClient.integrityCheckTransferCRC(byte[] localBytes, String remoteFile) protected voidProFTPClient.integrityCheckTransferCRC(String localPath, String remoteFile) protected voidProFTPClient.integrityCheckTransferSize(long length, String remoteFile) voidProFTPClient.mdelete(FileFilter filter) voidvoidProFTPClient.mdelete(String remoteDir, FileFilter filter, boolean recurse) voidvoidProFTPClientInterface.mdelete(FileFilter filter) Deletes all files matching the filter in the current remote directory onlyvoidDeletes all files matching the wildcard in the current remote directory onlyvoidProFTPClientInterface.mdelete(String remoteDir, FileFilter filter, boolean recurse) Delete all the files in this directory (and its subdirectories if recurse is true) that match the supplied filter.voidDelete all the files in this directory (and its subdirectories if recurse is true) that match the supplied wildcard.voidProFTPClient.mget(String localDir, FileFilter filter) voidvoidProFTPClient.mget(String localDir, String remoteDir, FileFilter filter, boolean recurse) voidvoidProFTPClientInterface.mget(String localDir, FileFilter filter) Get all files matching the filter in the current remote directory only into the supplied local directoryvoidGet all files matching the filter in the current remote directory only into the supplied local directoryvoidProFTPClientInterface.mget(String localDir, String remoteDir, FileFilter filter, boolean recurse) Gets this entire remote directory and its contents, recursively going through the remote directory name supplied.voidGets this entire remote directory and its contents, recursively going through the remote directory name supplied.voidProFTPClient.mput(String localDir, FileFilter filter) voidvoidProFTPClient.mput(String localDir, String remoteDir, FileFilter filter, boolean recurse) voidvoidProFTPClientInterface.mput(String localDir, FileFilter filter) Put all files matching the wildcard in the supplied local directory only into the current remote directoryvoidPut all files matching the wildcard in the supplied local directory only into the current remote directoryvoidProFTPClientInterface.mput(String localDir, String remoteDir, FileFilter filter, boolean recurse) Puts this entire directory and its contents.voidPuts this entire directory and its contents.protected voidProFTPClient.postTransferChecks(byte[] localBytes, String remotePath, FTPTransferType type, boolean append) Can be overridden by subclasses to do any necessary post transfer checking.protected voidProFTPClient.postTransferChecks(String localPath, String remotePath, FTPTransferType type, boolean append) Can be overridden by subclasses to do any necessary post transfer checking.voidvoidDelete this remote directory.protected voidProFTPControlSocket.setDataPort(InetAddress host, int portNo) Sets the data port on the server, that is, sends a EPRT command for IPV6 addresses, for example, EPRT |2|1080::8:800:200C:417A|5282| -
Uses of FTPException in com.enterprisedt.net.ftp.script
Methods in com.enterprisedt.net.ftp.script that throw FTPExceptionModifier and TypeMethodDescriptionASCIICommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) AuthCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) BinaryCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) CccCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) CdCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) CdUpCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) CommentCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) DebugCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) DeleteCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) DirCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) EchoCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) GetCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) HelpCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) LicenseCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) LocalCdCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) MDeleteCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) MGetCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) MkDirCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) MPutCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) OpenCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) ProtectCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) PutCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) PwdCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) QuitCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) QuoteCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) RecordCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) RenameCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) RmDirCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) ScriptCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) SetCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) SiteCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) TypeCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) VersionCommand.execute(ScriptEngine engine, ProFTPClientInterface ftp, String command, String args) -
Uses of FTPException in com.enterprisedt.net.ftp.ssh
Subclasses of FTPException in com.enterprisedt.net.ftp.sshMethods in com.enterprisedt.net.ftp.ssh that throw FTPExceptionModifier and TypeMethodDescriptionvoidSSHFTPClient.cancelResume()voidSSHFTPClient.cdup()voidSSHFTPClient.changeGroup(int gid, String path) Sets the group ID for the file or directory.voidSSHFTPClient.changeMode(int permissions, String path) Changes the access permissions or modes of the specified file or directory.voidSSHFTPClient.changeMode(String permissions, String path) Changes the access permissions or modes of the specified file or directory.voidSSHFTPClient.changeOwner(int uid, String path) Sets the user ID to owner for the file or directory.voidprotected voidSCPClient.checkConnection(boolean shouldBeConnected) Checks if the client has connected to the server and throws an exception if it hasn't.voidSCPClient.connect()Connects to the server at the address and port number defined in the constructor.voidSSHFTPClient.connect()Connects to the server at the address and port number defined in the constructor.protected voidSCPClient.connectSSH()Connects to the server at the address and port number defined in the constructor.voidString[]SSHFTPClient.dir()String[]String[]FTPFile[]SSHFTPClient.dirDetails(String dirname) voidSSHFTPClient.dirDetails(String dirname, DirectoryListCallback lister) SCPClient.executeCommand(String command) Execute a command on the remote server.SCPClient.executeCommand(String command, boolean allocatePseudoTerminal) Execute a command on the remote server.booleanSSHFTPClient.fileDetails(String name) Get details about the named filevoidDownload a filevoidSSHFTPClient.get(OutputStream destStream, String remoteFile) byte[]voidstatic SSHFTPPublicKeySCPClient.getHostPublicKey(String remoteHost) Helper method that may be used to obtain a server's public key without instantiating anSCPClient.static SSHFTPPublicKeySCPClient.getHostPublicKey(String remoteHost, int remotePort) Helper method that may be used to obtain a server's public key without instantiating anSCPClient.static SSHFTPPublicKeySSHFTPClient.getHostPublicKey(String remoteHost) Helper method that may be used to obtain a server's public key without instantiating anSSHFTPClient.static SSHFTPPublicKeySSHFTPClient.getHostPublicKey(String remoteHost, int remotePort) Helper method that may be used to obtain a server's public key without instantiating anSSHFTPClient.SSHFTPClient.getUmask()Get the current umaskvoidSSHFTPClient.keepAlive()Tries to keep the current connection alive by sending an innocuous command to signal that the client is still activevoidSSHFTPClient.mdelete(FileFilter filter) voidvoidSSHFTPClient.mdelete(String remoteDir, FileFilter filter, boolean recurse) voidvoidSSHFTPClient.mget(String localDir, FileFilter filter) voidvoidSSHFTPClient.mget(String localDir, String remoteDir, FileFilter filter, boolean recurse) voidvoidvoidSSHFTPClient.mput(String localDir, FileFilter filter) voidvoidSSHFTPClient.mput(String localDir, String remoteDir, FileFilter filter, boolean recurse) voidUpload a file.SSHFTPClient.put(InputStream srcStream, String remoteFile) SSHFTPClient.put(InputStream srcStream, String remoteFile, boolean append) SSHFTPClient.pwd()voidSCPClient.quit()voidSSHFTPClient.quit()voidSCPClient.quitImmediately()voidSSHFTPClient.quitImmediately()voidvoidSSHFTPClient.resume()voidSSHFTPClient.resumeNextDownload(long offset) Resumes the next download from the offset point, which must be smaller than the length of the file to be downloaded.voidvoidvoidSCPClient.setAuthentication(InputStream inStr, String userName, String keyFilePassphrase) Set up the SFTP client to authenticate using a private/public key-pair.voidSCPClient.setAuthentication(String user, SSHAuthPrompt[] prompts) Set up keyboard-interactive (KBI) authentication by supplying an array of responses to possible prompts by the SSH servervoidSCPClient.setAuthentication(String userName, String password) Set up user-name/password authentication.voidSCPClient.setAuthentication(String userName, String password, PasswordChanger pwdChanger) Set up user-name/password authentication.voidSCPClient.setAuthentication(String keyFileName, String userName, String keyFilePassphrase) Set up the SFTP client to authenticate using a private/public key-pair.voidSCPClient.setAuthentication(String keyFileName, String userName, String keyFilePassphrase, String userPassword) Set up the SFTP client to authenticate using a private/public key-pair, followed by password authentication.voidSCPClient.setAuthentication(String keyFileName, String userName, String keyFilePassphrase, String userPassword, boolean publicKeyFirst) Set up the SFTP client to authenticate using a private/public key-pair, followed by password authentication, or in the reverse order.voidSCPClient.setAuthenticationChangePassword(String userName, String oldPassword, String newPassword) Set up user-name/password authentication, and change the user's password.voidSSHFTPClient.setConfigFlags(int configFlags) Set the configuration flags.voidSSHFTPClient.setControlEncoding(String controlEncoding) Set the encoding.voidSSHFTPClient.setMaxPacketSize(int maxPacketSize) Set the maximum packet size.voidSSHFTPClient.setModTime(String path, Date modTime) Set the last modified time for the supplied filevoidSCPClient.setRemoteHost(String remoteHost) voidSCPClient.setRemotePort(int port) Set the SSH port of the remote host.voidSSHFTPClient.setServerResponseTimeout(long serverResponseTimeout) Deprecated.voidSCPClient.setTimeout(int millis) voidSSHFTPClient.setTimeout(int millis) voidSets the umask used to write permissionsvoidSCPClient.setValidator(SSHFTPValidator validator) Sets the host validator.longSCPClient.system()Get a string representing the remote system.Constructors in com.enterprisedt.net.ftp.ssh that throw FTPExceptionModifierConstructorDescriptionAbstractSFTPInputStream(SSHFTPClient client, String remoteFile) Constructor.SSHFTPInputStream(SSHFTPClient client, String remoteFile) Constructor.SSHFTPInputStream(SSHFTPClient client, String remoteFile, long offset) Constructor.SSHFTPOutputStream(SSHFTPClient client, String remoteFile) Constructor.SSHFTPOutputStream(SSHFTPClient client, String remoteFile, boolean append) Constructor. -
Uses of FTPException in com.enterprisedt.net.ftp.ssl
Subclasses of FTPException in com.enterprisedt.net.ftp.sslModifier and TypeClassDescriptionclassThis exception is thrown when an error relating to SSL/TLS certificates occurs.classThis exception is usually thrown when an error relating to the FTPS protocol occurs.Methods in com.enterprisedt.net.ftp.ssl that throw FTPExceptionModifier and TypeMethodDescriptionvoidSSLFTPClient.auth(char command) Required for certain implementations of implicit SSL.voidSwitches the control-channel (the connection which carries commands) to secure mode.voidSSLFTPClient.ccc()Clears the control channel, setting it back to plain text.voidSSLFTPClient.connect()Connects to the server at the address and port number defined in the constructor.protected com.enterprisedt.net.ftp.internal.FTPDataSocketSSLFTPControlSocket.createDataSocketPASV()Request a data socket be created on the server, connect to it and return our connected socket.voidSSLFTPClient.disableAllCipherSuites()Disables all cipher-suites.voidSSLFTPClient.enableCipherSuite(SSLFTPCipherSuite cipherSuite) Enables the given cipher-suite.voidSSLFTPClient.enableCipherSuites(SSLFTPCipherSuite[] cipherSuites) Enables the given cipher-suites.static SSLFTPCertificateSSLFTPClient.getServerCertificate(String hostName) Connects to the given explicit FTPS server and retrieves its certificate.static SSLFTPCertificateSSLFTPClient.getServerCertificate(String hostName, int remotePort) Connects to the given explicit FTPS server and retrieves its certificate.static SSLFTPCertificateSSLFTPClient.getServerCertificate(String hostName, int remotePort, boolean isImplicit) Connects to the given implicit or explicit FTPS server and retrieves its certificate.static StringSSLFTPClient.getServerSecurityMechanism(String remoteHost) Returns the safest explicit FTPS security mechanism supported by the server.static StringSSLFTPClient.getServerSecurityMechanism(String remoteHost, int remotePort) Returns the safest explicit FTPS security mechanism supported by the server.voidSSLFTPClient.loadClientCertificate(InputStream inputStream, String password) Loads the client's private key and certificate in PEM format from the given input-stream.voidSSLFTPClient.loadClientCertificate(String path, String password) Loads the client's private key and certificate in PEM format from the given file.voidSSLFTPClient.loadClientKeyFile(InputStream inputStream, String password) Deprecated.UseloadClientCertificate(inputStream, password).voidSSLFTPClient.loadClientKeyFile(String path, String password) Deprecated.UseloadClientCertificate(path, password).voidSSLFTPClient.loadRootCertificates(InputStream inputStream) voidSSLFTPClient.loadRootCertificates(String path) voidSSLFTPClient.pbsz(int bufferSize) Defines the buffer-size to be used on data-connections.voidSSLFTPClient.prot(char command) Defines the security-level of subsequent data-transfers.protected voidReconnect to the servervoidSSLFTPClient.setConfigFlags(int configFlags) Set the configuration flags which control various compatibility features.voidSSLFTPClient.setCustomValidator(SSLFTPValidator newValidator) Sets the validator.protected voidSSLFTPControlSocket.setDataPort(InetAddress host, int portNo) Sets the data port on the server, that is, sends a EPRT command for IPV6 addresses, for example, EPRT |2|1080::8:800:200C:417A|5282|voidSSLFTPClient.setValidateServer(boolean validate) Determines whether or not this client will attempt to validate server certificates.voidSSLFTPControlSocket.shutdownSSL()Constructors in com.enterprisedt.net.ftp.ssl that throw FTPExceptionModifierConstructorDescriptionConstructs an FTPS client for the given remote host.