Package | Description |
---|---|
com.enterprisedt.net.ftp |
FileTransferClient is the key
class for edtFTPj/Free and provides basic FTP features. |
com.enterprisedt.net.ftp.async |
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.
|
com.enterprisedt.net.ftp.pro |
Contains classes for enhanced FTP client functionality.
|
com.enterprisedt.net.ftp.script |
Contains classes for FTP scripting.
|
com.enterprisedt.net.ftp.ssh |
Contains classes for SFTP (FTP via SSH) client functionality.
|
com.enterprisedt.net.ftp.ssl |
Contains classes for FTPS (FTP over SSL) client functionality.
|
Modifier and Type | Class and Description |
---|---|
class |
FTPConnectionClosedException
Thrown when an FTP transfer has been closed by the server
|
class |
FTPTransferCancelledException
Thrown when an FTP transfer has been cancelled
|
class |
MalformedReplyException
A malformed reply was received from the server
|
Modifier and Type | Method and Description |
---|---|
protected void |
FTPClient.abort()
Abort the current action
|
void |
FTPClient.account(java.lang.String accountInfo)
Supply account information string to the server.
|
void |
FTPClientInterface.cancelResume()
Cancel the resume.
|
void |
FTPClient.cancelResume() |
void |
FTPClientInterface.cdup()
Change the remote working directory to
the parent directory
|
void |
FTPClient.cdup() |
void |
SecureFileTransferClient.changeDirectory(java.lang.String directoryName)
Change directory on the FTP server.
|
void |
FileTransferClientInterface.changeDirectory(java.lang.String directoryName)
Change directory on the FTP server.
|
void |
FileTransferClient.changeDirectory(java.lang.String directoryName)
Change directory on the FTP server.
|
void |
AsyncFileTransferClient.changeDirectory(java.lang.String directoryName)
Change directory on the FTP server.
|
ChangeDirectoryResult |
AsyncFileTransferClient.changeDirectoryAsync(java.lang.String directoryName,
AsyncCallback.ChangeDirectory callback,
java.lang.Object tag)
Change directory on the FTP server asynchronously.
|
void |
SecureFileTransferClient.changeToParentDirectory()
Change to parent directory on the FTP server.
|
void |
FileTransferClientInterface.changeToParentDirectory()
Change to parent directory on the FTP server.
|
void |
FileTransferClient.changeToParentDirectory()
Change to parent directory on the FTP server.
|
ChangeDirectoryResult |
AsyncFileTransferClient.changeToParentDirectoryAsync(AsyncCallback.ChangeDirectory callback,
java.lang.Object tag)
Change directory on the FTP server asynchronously.
|
void |
FTPClientInterface.chdir(java.lang.String dir)
Change the remote working directory to
that supplied
|
void |
FTPClient.chdir(java.lang.String dir) |
protected void |
SecureFileTransferClient.checkConnection(boolean shouldBeConnected)
Checks if the client has connected to the server and throws an exception if it hasn't.
|
protected void |
FTPClient.checkConnection(boolean shouldBeConnected)
Checks if the client has connected to the server and throws an exception if it hasn't.
|
protected void |
FileTransferClient.checkConnection(boolean shouldBeConnected)
Checks if the client has connected to the server and throws an exception if it hasn't.
|
protected FTPTransferType |
FTPClient.chooseTransferMode(java.lang.String filename)
Switch the transfer mode if requested and if necessary
|
void |
SecureFileTransferClient.connect()
Make a connection to the FTP server.
|
void |
FTPClientInterface.connect()
Connects to the server at the address and port number defined
in the constructor.
|
void |
FTPClient.connect()
Connects to the server at the address and port number defined
in the constructor.
|
void |
FileTransferClientInterface.connect()
Make a connection to the FTP server.
|
void |
FileTransferClient.connect()
Make a connection to the FTP server.
|
ConnectResult |
AsyncFileTransferClient.connectAsync(AsyncCallback.Connect callback,
java.lang.Object tag)
Make an asynchronous connection to the FTP server.
|
static ProFTPClientInterface |
FTPClientFactory.createClient(Protocol protocol)
Create an FTP client that supports the supplied protocol.
|
static ProFTPClientInterface |
FTPClientFactory.createClient(Protocol protocol,
boolean serverValidation)
Create an FTP client that supports the supplied protocol.
|
protected void |
FTPClient.createDataSocket()
Set up the data socket
|
protected com.enterprisedt.net.ftp.internal.FTPDataSocket |
FTPControlSocket.createDataSocketPASV()
Request a data socket be created on the
server, connect to it and return our
connected socket.
|
void |
SecureFileTransferClient.createDirectory(java.lang.String directoryName)
Create directory on the FTP server.
|
void |
FileTransferClientInterface.createDirectory(java.lang.String directoryName)
Create directory on the FTP server.
|
void |
FileTransferClient.createDirectory(java.lang.String directoryName)
Create directory on the FTP server.
|
CreateDirectoryResult |
AsyncFileTransferClient.createDirectoryAsync(java.lang.String directoryName,
AsyncCallback.CreateDirectory callback,
java.lang.Object tag)
Change directory on the FTP server asynchronously.
|
void |
RecursiveOperations.delete(FTPClientInterface ftp,
java.lang.String remoteDir)
Delete this entire remote directory and its contents, recursively going
through the remote directory name supplied
|
void |
FTPClientInterface.delete(java.lang.String remoteFile)
Delete the specified remote file
|
void |
FTPClient.delete(java.lang.String remoteFile) |
void |
SecureFileTransferClient.deleteDirectory(java.lang.String directoryName)
Delete a directory on the FTP server.
|
void |
FileTransferClientInterface.deleteDirectory(java.lang.String directoryName)
Delete directory on the FTP server.
|
void |
FileTransferClient.deleteDirectory(java.lang.String directoryName)
Delete directory on the FTP server.
|
void |
SecureFileTransferClient.deleteDirectory(java.lang.String directoryName,
boolean recursive)
Delete a directory on the FTP server, and optionally sub-directories.
|
DeleteDirectoryResult |
AsyncFileTransferClient.deleteDirectoryAsync(java.lang.String directoryName,
AsyncCallback.DeleteDirectory callback,
java.lang.Object tag)
Delete a directory on the FTP server asynchronously.
|
DeleteDirectoryResult |
AsyncFileTransferClient.deleteDirectoryAsync(java.lang.String directoryName,
boolean recursive,
AsyncCallback.DeleteDirectory callback,
java.lang.Object tag)
Delete a directory on the FTP server asynchronously, and optionally sub-directories.
|
void |
SecureFileTransferClient.deleteFile(java.lang.String remoteFileName)
Deletes a remote file.
|
void |
FileTransferClientInterface.deleteFile(java.lang.String remoteFileName)
Deletes a remote file.
|
void |
FileTransferClient.deleteFile(java.lang.String remoteFileName)
Deletes a remote file.
|
DeleteFileResult |
AsyncFileTransferClient.deleteFileAsync(java.lang.String remoteFileName,
AsyncCallback.DeleteFile callback,
java.lang.Object tag)
Deletes a remote file asynchronously.
|
void |
RecursiveOperations.deleteFiles(FTPClientInterface ftp,
java.io.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.
|
void |
RecursiveOperations.deleteFiles(FTPClientInterface ftp,
java.lang.String remoteDir,
java.io.FileFilter filter)
Delete all the files in this directory (and its subdirectories) that
match the supplied filter, recursively going through the remote
directories.
|
void |
RecursiveOperations.deleteFiles(FTPClientInterface ftp,
java.lang.String remoteDir,
java.io.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.
|
void |
RecursiveOperations.deleteFiles(FTPClientInterface ftp,
java.lang.String remoteDir,
java.lang.String wildcard)
Delete all the files in this directory (and its subdirectories) that
match the supplied wildcard, recursively going through the remote
directories.
|
void |
RecursiveOperations.deleteFilesCurrentDir(FTPClientInterface ftp,
java.io.FileFilter filter)
Delete all the files in this directory (not subdirectories) that match
the supplied filter.
|
void |
SecureFileTransferClient.deleteMultipleFiles(java.io.FileFilter filter)
Deletes remote files in the current directory that
match the supplied filename filter
|
void |
SecureFileTransferClient.deleteMultipleFiles(java.lang.String wildcard)
Deletes remote files in the current directory that
match the supplied wildcard
|
void |
SecureFileTransferClient.deleteMultipleFiles(java.lang.String remoteDirectory,
java.io.FileFilter filter,
boolean recursive)
Deletes remote files in the current directory.
|
void |
SecureFileTransferClient.deleteMultipleFiles(java.lang.String remoteDirectory,
java.lang.String wildcard,
boolean recursive)
Deletes remote files in the current directory.
|
DeleteMultipleFilesResult |
AsyncFileTransferClient.deleteMultipleFilesAsync(java.io.FileFilter filter,
AsyncCallback.DeleteMultipleFiles callback,
java.lang.Object tag)
Deletes remote files in the current directory that
match the supplied wildcard
|
DeleteMultipleFilesResult |
AsyncFileTransferClient.deleteMultipleFilesAsync(java.lang.String wildcard,
AsyncCallback.DeleteMultipleFiles callback,
java.lang.Object tag)
Deletes remote files in the current directory that
match the supplied wildcard
|
DeleteMultipleFilesResult |
AsyncFileTransferClient.deleteMultipleFilesAsync(java.lang.String remoteDirectory,
java.io.FileFilter filter,
boolean recursive,
AsyncCallback.DeleteMultipleFiles callback,
java.lang.Object tag)
Deletes remote files that match the supplied wildcard in the supplied remote directory asynchronously.
|
DeleteMultipleFilesResult |
AsyncFileTransferClient.deleteMultipleFilesAsync(java.lang.String remoteDirectory,
java.lang.String wildcard,
boolean recursive,
AsyncCallback.DeleteMultipleFiles callback,
java.lang.Object tag)
Deletes remote files that match the supplied wildcard in the supplied remote directory asynchronously.
|
java.lang.String[] |
FTPClientInterface.dir()
List current directory's contents as an array of strings of
filenames.
|
java.lang.String[] |
FTPClient.dir() |
java.lang.String[] |
FTPClientInterface.dir(java.lang.String dirname)
List a directory's contents as an array of strings of filenames.
|
java.lang.String[] |
FTPClient.dir(java.lang.String dirname) |
java.lang.String[] |
FTPClientInterface.dir(java.lang.String dirname,
boolean full)
List a directory's contents as an array of strings.
|
java.lang.String[] |
FTPClient.dir(java.lang.String dirname,
boolean full) |
FTPFile[] |
RecursiveOperations.dirDetails(FTPClientInterface ftp,
java.lang.String remoteDir)
List this entire remote directory and its contents, including children.
|
FTPFile[] |
FTPClientInterface.dirDetails(java.lang.String dirname)
List a directory's contents as an array of FTPFile objects.
|
FTPFile[] |
FTPClient.dirDetails(java.lang.String dirname) |
void |
FTPClientInterface.dirDetails(java.lang.String dirname,
DirectoryListCallback lister)
List a directory's contents via a callback.
|
void |
FTPClient.dirDetails(java.lang.String dirname,
DirectoryListCallback lister) |
FTPFile[] |
FTPClient.dirDetailsM(java.lang.String dirname)
Uses the MLSD command to find out details about the
named directory.
|
FTPFile[] |
SecureFileTransferClient.directoryList()
List the current directory on the FTP server.
|
FTPFile[] |
FileTransferClientInterface.directoryList()
List the current directory on the FTP server.
|
FTPFile[] |
FileTransferClient.directoryList()
List the current directory on the FTP server.
|
FTPFile[] |
SecureFileTransferClient.directoryList(java.lang.String directoryName)
List a directory on the FTP server.
|
FTPFile[] |
FileTransferClientInterface.directoryList(java.lang.String directoryName)
List a directory on the FTP server.
|
FTPFile[] |
FileTransferClient.directoryList(java.lang.String directoryName)
List a directory on the FTP server.
|
void |
SecureFileTransferClient.directoryList(java.lang.String directoryName,
DirectoryListCallback lister)
List a directory on the FTP server, calling the user-supplied callback for each entry.
|
void |
FileTransferClientInterface.directoryList(java.lang.String directoryName,
DirectoryListCallback lister)
List a directory on the FTP server.
|
void |
FileTransferClient.directoryList(java.lang.String directoryName,
DirectoryListCallback lister)
List a directory on the FTP server.
|
DirectoryListResult |
AsyncFileTransferClient.directoryListAsync(java.lang.String directoryName,
AsyncCallback.DirectoryList callback,
java.lang.Object tag)
List a directory on the FTP server asynchronously.
|
java.lang.String[] |
SecureFileTransferClient.directoryNameList()
List the names of files and directories in the current directory on the FTP server.
|
java.lang.String[] |
FileTransferClientInterface.directoryNameList()
List the names of files and directories in the current directory on the FTP server.
|
java.lang.String[] |
FileTransferClient.directoryNameList()
List the names of files and directories in the current directory on the FTP server.
|
java.lang.String[] |
SecureFileTransferClient.directoryNameList(java.lang.String directoryName,
boolean isLongListing)
List a directory on the FTP server.
|
java.lang.String[] |
FileTransferClientInterface.directoryNameList(java.lang.String directoryName,
boolean isLongListing)
List the names of files and directories of a directory on the FTP server.
|
java.lang.String[] |
FileTransferClient.directoryNameList(java.lang.String directoryName,
boolean isLongListing)
List the names of files and directories of a directory on the FTP server.
|
DirectoryNameListResult |
AsyncFileTransferClient.directoryNameListAsync(java.lang.String directoryName,
boolean isLongListing,
AsyncCallback.DirectoryNameList callback,
java.lang.Object tag)
List a directory on the FTP server asynchronously.
|
void |
AdvancedSSHSettings.disableAllAlgorithms()
Disables all algorithms.
|
void |
AdvancedSSHSettings.disableAllAlgorithms(int algorithmType)
Disables all algorithms of a particular type.
|
void |
SecureFileTransferClient.disconnect()
Disconnect from the FTP server.
|
void |
FileTransferClientInterface.disconnect()
Disconnect from the FTP server.
|
void |
FileTransferClient.disconnect()
Disconnect from the FTP server.
|
void |
SecureFileTransferClient.disconnect(boolean immediate)
Disconnect from the FTP server immediately.
|
void |
FileTransferClientInterface.disconnect(boolean immediate)
Disconnect from the FTP server.
|
void |
FileTransferClient.disconnect(boolean immediate)
Disconnect from the FTP server.
|
DisconnectResult |
AsyncFileTransferClient.disconnectAsync(AsyncCallback.Disconnect callback,
java.lang.Object tag)
Disconnect from the FTP server asynchronously.
|
DisconnectResult |
AsyncFileTransferClient.disconnectAsync(boolean immediate,
AsyncCallback.Disconnect callback,
java.lang.Object tag)
Disconnect from the FTP server asynchronously.
|
byte[] |
SecureFileTransferClient.downloadByteArray(java.lang.String remoteFileName)
Download a file from the FTP server into a byte array.
|
byte[] |
FileTransferClientInterface.downloadByteArray(java.lang.String remoteFileName)
Download a file from the FTP server into a byte array.
|
byte[] |
FileTransferClient.downloadByteArray(java.lang.String remoteFileName)
Download a file from the FTP server into a byte array.
|
DownloadByteArrayResult |
AsyncFileTransferClient.downloadByteArrayAsync(java.lang.String remoteFileName,
AsyncCallback.DownloadByteArray callback,
java.lang.Object tag)
Download a file from the FTP server asynchronously to a byte array
|
void |
SecureFileTransferClient.downloadFile(java.lang.String localFileName,
java.lang.String remoteFileName)
Download a file from the FTP server .
|
void |
FileTransferClientInterface.downloadFile(java.lang.String localFileName,
java.lang.String remoteFileName)
Download a file from the FTP server .
|
void |
FileTransferClient.downloadFile(java.lang.String localFileName,
java.lang.String remoteFileName)
Download a file from the FTP server .
|
void |
SecureFileTransferClient.downloadFile(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode)
Download a file from the FTP server .
|
void |
FileTransferClientInterface.downloadFile(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode)
Download a file from the FTP server .
|
void |
FileTransferClient.downloadFile(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode)
Download a file from the FTP server .
|
DownloadFileResult |
AsyncFileTransferClient.downloadFileAsync(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode,
AsyncCallback.DownloadFile callback,
java.lang.Object tag)
Download a file from the FTP server asynchronously.
|
void |
SecureFileTransferClient.downloadMultiple(java.lang.String localDir,
java.io.FileFilter filter)
Downloads remote files to the supplied local directory that match the supplied wildcard
from the current remote directory.
|
void |
SecureFileTransferClient.downloadMultiple(java.lang.String localDir,
java.lang.String wildcard)
Downloads remote files to the supplied local directory that match the supplied wildcard
from the current remote directory.
|
void |
SecureFileTransferClient.downloadMultiple(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recursive)
Downloads remote files to the supplied local directory that match the supplied FileFilter
from the current remote directory.
|
void |
SecureFileTransferClient.downloadMultiple(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recursive)
Downloads remote files to the supplied local directory that match the supplied wildcard
from the current remote directory.
|
DownloadMultipleResult |
AsyncFileTransferClient.downloadMultipleAsync(java.lang.String localDir,
java.io.FileFilter filter,
AsyncCallback.DownloadMultiple callback,
java.lang.Object tag)
Downloads remote files to the supplied local directory that match the supplied wildcard
from the current remote directory.
|
DownloadMultipleResult |
AsyncFileTransferClient.downloadMultipleAsync(java.lang.String localDir,
java.lang.String wildcard,
AsyncCallback.DownloadMultiple callback,
java.lang.Object tag)
Downloads remote files to the supplied local directory that match the supplied wildcard
from the current remote directory.
|
DownloadMultipleResult |
AsyncFileTransferClient.downloadMultipleAsync(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recursive,
AsyncCallback.DownloadMultiple callback,
java.lang.Object tag)
Downloads remote files to the supplied local directory that match the supplied wildcard
from the current remote directory.
|
DownloadMultipleResult |
AsyncFileTransferClient.downloadMultipleAsync(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recursive,
AsyncCallback.DownloadMultiple callback,
java.lang.Object tag)
Downloads remote files to the supplied local directory that match the supplied wildcard
from the current remote directory.
|
FileTransferInputStream |
SecureFileTransferClient.downloadStream(java.lang.String remoteFileName)
Download a file from the FTP server as a stream.
|
FileTransferInputStream |
FileTransferClientInterface.downloadStream(java.lang.String remoteFileName)
Download a file from the FTP server as a stream.
|
FileTransferInputStream |
FileTransferClient.downloadStream(java.lang.String remoteFileName)
Download a file from the FTP server as a stream.
|
DownloadStreamResult |
AsyncFileTransferClient.downloadStreamAsync(java.lang.String remoteFileName,
AsyncCallback.DownloadStream callback,
java.lang.Object tag)
Download a file from the FTP server as a stream, asynchronously.
|
static void |
SecureFileTransferClient.downloadURLFile(java.lang.String localFileName,
java.lang.String ftpURL)
Downloads the given file to the given FTP URL.
|
static void |
FileTransferClient.downloadURLFile(java.lang.String localFileName,
java.lang.String ftpURL)
Downloads the given file to the given FTP URL.
|
static FileTransferInputStream |
SecureFileTransferClient.downloadURLStream(java.lang.String ftpURL)
Open an InputStream for the given FTP URL.
|
static FileTransferInputStream |
FileTransferClient.downloadURLStream(java.lang.String ftpURL)
Open an InputStream for the given FTP URL.
|
java.lang.String |
SecureFileTransferClient.executeCommand(java.lang.String command)
Request that the remote server execute the literal command supplied.
|
java.lang.String |
FTPClientInterface.executeCommand(java.lang.String command)
Request that the remote server execute the literal command supplied.
|
java.lang.String |
FTPClient.executeCommand(java.lang.String command)
Request that the remote server execute the literal command supplied.
|
java.lang.String |
FileTransferClientInterface.executeCommand(java.lang.String command)
Request that the remote server execute the literal command supplied.
|
java.lang.String |
FileTransferClient.executeCommand(java.lang.String command)
Request that the remote server execute the literal command supplied.
|
ExecuteCommandResult |
AsyncFileTransferClient.executeCommandAsync(java.lang.String command,
AsyncCallback.ExecuteCommand callback,
java.lang.Object tag)
Request that the remote server execute the literal command supplied.
|
boolean |
SecureFileTransferClient.exists(java.lang.String remoteFileName)
Determine if a remote file exists.
|
boolean |
FTPClientInterface.exists(java.lang.String remoteFile)
Does the named file exist in the current server directory?
|
boolean |
FTPClient.exists(java.lang.String remoteFile)
Deprecated.
Use existsFile(String).
|
boolean |
FileTransferClientInterface.exists(java.lang.String remoteFileName)
Determine if a remote file exists.
|
boolean |
FileTransferClient.exists(java.lang.String remoteFileName)
Determine if a remote file exists.
|
ExistsResult |
AsyncFileTransferClient.existsAsync(java.lang.String remoteFileName,
AsyncCallback.Exists callback,
java.lang.Object tag)
Determine asynchronously if a remote file exists.
|
boolean |
SecureFileTransferClient.existsDirectory(java.lang.String remoteDir)
Determine if a remote directory exists.
|
boolean |
FTPClient.existsDirectory(java.lang.String remoteDirectory)
Use to find out if a directory exists or not.
|
boolean |
FTPClient.existsFile(java.lang.String remoteFile)
Use to find out if a file exists or not.
|
java.lang.String[] |
FTPClient.features()
Get the server supplied features
|
FTPFile |
FTPClient.fileDetails(java.lang.String name)
Uses the MLST command to find out details about the
named file.
|
void |
RecursiveOperations.get(FTPClientInterface ftp,
java.lang.String localDir,
java.lang.String remoteDir)
Gets this entire remote directory and its contents, recursively going
through the remote directory name supplied.
|
void |
RecursiveOperations.get(FTPClientInterface ftp,
java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter)
Gets this entire remote directory and its contents, recursively going
through the remote directory name supplied.
|
void |
RecursiveOperations.get(FTPClientInterface ftp,
java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recurse)
Gets this entire remote directory and its contents, recursively (if
recurse is true) going through the remote directory name supplied.
|
void |
RecursiveOperations.get(FTPClientInterface ftp,
java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard)
Gets this entire remote directory and its contents, recursively going
through the remote directory name supplied.
|
void |
FTPClientInterface.get(java.io.OutputStream destStream,
java.lang.String remoteFile)
Get data from the FTP server.
|
void |
FTPClient.get(java.io.OutputStream destStream,
java.lang.String remoteFile) |
byte[] |
FTPClientInterface.get(java.lang.String remoteFile)
Get data from the FTP server.
|
byte[] |
FTPClient.get(java.lang.String remoteFile) |
void |
FTPClientInterface.get(java.lang.String localPath,
java.lang.String remoteFile)
Get data from the FTP server.
|
void |
FTPClient.get(java.lang.String localPath,
java.lang.String remoteFile) |
void |
RecursiveOperations.getFilesFromCurrentDir(FTPClientInterface ftp,
java.lang.String localDir,
java.io.FileFilter filter)
Gets all files matching the supplied filter from current remote directory
into supplied local dir.
|
java.util.Date |
SecureFileTransferClient.getModifiedTime(java.lang.String remoteFileName)
Get the modified-time of a remote file.
|
java.util.Date |
FileTransferClientInterface.getModifiedTime(java.lang.String remoteFileName)
Get the modified-time of a remote file.
|
java.util.Date |
FileTransferClient.getModifiedTime(java.lang.String remoteFileName)
Get the modified-time of a remote file.
|
ModifiedTimeResult |
AsyncFileTransferClient.getModifiedTimeAsync(java.lang.String remoteFileName,
AsyncCallback.GetModifiedTime callback,
java.lang.Object tag)
Get the modified-time of a remote file asynchronously.
|
java.lang.String |
FileTransferClientInterface.getRemoteDirectory()
Get the current remote directory.
|
java.lang.String |
FileTransferClient.getRemoteDirectory()
Get the current remote directory.
|
long |
SecureFileTransferClient.getSize(java.lang.String remoteFileName)
Get the size of a remote file.
|
long |
FileTransferClientInterface.getSize(java.lang.String remoteFileName)
Get the size of a remote file.
|
long |
FileTransferClient.getSize(java.lang.String remoteFileName)
Get the size of a remote file.
|
SizeResult |
AsyncFileTransferClient.getSizeAsync(java.lang.String remoteFileName,
AsyncCallback.Size callback,
java.lang.Object tag)
Get the size of a remote file asynchronously.
|
java.lang.String |
SecureFileTransferClient.getSystemType()
Get a string that represents the remote system that the client is logged
into.
|
java.lang.String |
FileTransferClientInterface.getSystemType()
Get a string that represents the remote system that the client is logged
into.
|
java.lang.String |
FileTransferClient.getSystemType()
Get a string that represents the remote system that the client is logged
into.
|
GetSystemTypeResult |
AsyncFileTransferClient.getSystemTypeAsync(AsyncCallback.GetSystemType callback,
java.lang.Object tag)
Get a string that represents the remote system that the client is logged
into.
|
java.lang.String |
FTPClient.help(java.lang.String command)
Get the help text for the specified command
|
protected void |
FTPClient.initGet(java.lang.String remoteFile)
Request to the server that the get is set up
|
protected java.lang.String |
FTPClient.initPut(java.lang.String remoteFile,
boolean append)
Request the server to set up the put
|
void |
FTPClientInterface.keepAlive()
Tries to keep the current connection alive by
some means, usually by sending an innocuous commmand.
|
void |
FTPClient.keepAlive()
Tries to keep the current connection alive by
sending an innocuous command to signal that the
client is still active
|
java.lang.String |
FTPClient.list(java.lang.String dirname)
Deprecated.
As of FTP 1.1, replaced by
FTPClient.dir(String) |
java.lang.String |
FTPClient.list(java.lang.String dirname,
boolean full)
Deprecated.
As of FTP 1.1, replaced by
FTPClient.dir(String,boolean) |
void |
SecureFileTransferClient.loadSSHServerValidation(java.lang.String knownHosts)
Load the public keys that the server public key will be validated
against.
|
void |
SecureFileTransferClient.loadSSLServerValidation(java.lang.String rootCertificatesPath)
Load the root certificates that the server certificate will be validated
against.
|
void |
FTPClient.login(java.lang.String user,
java.lang.String password)
Login into an account on the FTP server.
|
void |
FTPClient.login(java.lang.String user,
java.lang.String password,
java.lang.String accountInfo)
Login into an account on the FTP server.
|
void |
FileTransferClient.manualLogin()
Perform a manual login using the credentials that have been set.
|
void |
FTPClientInterface.mkdir(java.lang.String dir)
Create the specified remote working directory
|
void |
FTPClient.mkdir(java.lang.String dir) |
java.util.Date |
FTPClientInterface.modtime(java.lang.String remoteFile)
Get modification time for a remote file.
|
java.util.Date |
FTPClient.modtime(java.lang.String remoteFile) |
void |
FTPClient.noOp()
Send the NOOP message
|
void |
FTPClient.noOperation()
Send a "no operation" message that does nothing.
|
void |
FTPClient.password(java.lang.String password)
Supplies the password for a previously supplied
username to log into the FTP server.
|
protected void |
FTPClient.postTransferChecks(byte[] localBytes,
java.lang.String remotePath,
FTPTransferType transferType,
boolean append)
Can be overridden by subclasses to do any necessary post transfer
checking.
|
protected void |
FTPClient.postTransferChecks(java.lang.String localPath,
java.lang.String remotePath,
FTPTransferType transferType,
boolean append)
Can be overridden by subclasses to do any necessary post transfer
checking.
|
protected static void |
FileTransferClient.prepareURLTransfer(java.net.URL url,
FileTransferClientInterface client) |
java.lang.String |
FTPClientInterface.put(byte[] bytes,
java.lang.String remoteFile)
Put data onto the FTP server.
|
java.lang.String |
FTPClient.put(byte[] bytes,
java.lang.String remoteFile) |
java.lang.String |
FTPClientInterface.put(byte[] bytes,
java.lang.String remoteFile,
boolean append)
Put data onto the FTP server.
|
java.lang.String |
FTPClient.put(byte[] bytes,
java.lang.String remoteFile,
boolean append) |
void |
RecursiveOperations.put(FTPClientInterface ftp,
java.lang.String localDir,
java.lang.String remoteDir)
Puts this entire directory and its contents, recursively going through
the local directory supplied (which can be relative or absolute.
|
void |
RecursiveOperations.put(FTPClientInterface ftp,
java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter)
Puts this entire directory and its contents, recursively going through
the local directory supplied (which can be relative or absolute.
|
void |
RecursiveOperations.put(FTPClientInterface ftp,
java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recurse)
Puts this entire directory and its contents.
|
void |
RecursiveOperations.put(FTPClientInterface ftp,
java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard)
Puts this entire directory and its contents, recursively going through
the local directory supplied (which can be relative or absolute.
|
java.lang.String |
FTPClientInterface.put(java.io.InputStream srcStream,
java.lang.String remoteFile)
Put a stream of data onto the FTP server.
|
java.lang.String |
FTPClient.put(java.io.InputStream srcStream,
java.lang.String remoteFile) |
java.lang.String |
FTPClientInterface.put(java.io.InputStream srcStream,
java.lang.String remoteFile,
boolean append)
Put a stream of data onto the FTP server.
|
java.lang.String |
FTPClient.put(java.io.InputStream srcStream,
java.lang.String remoteFile,
boolean append) |
java.lang.String |
FTPClientInterface.put(java.lang.String localPath,
java.lang.String remoteFile)
Put a local file onto the FTP server.
|
java.lang.String |
FTPClient.put(java.lang.String localPath,
java.lang.String remoteFile) |
java.lang.String |
FTPClientInterface.put(java.lang.String localPath,
java.lang.String remoteFile,
boolean append)
Put a local file onto the FTP server.
|
java.lang.String |
FTPClient.put(java.lang.String localPath,
java.lang.String remoteFile,
boolean append) |
void |
RecursiveOperations.putFilesIntoCurrentDir(FTPClientInterface ftp,
java.lang.String localDir,
java.io.FileFilter filter)
Puts all files from supplied local dir matching the supplied filter into
the current remote directory.
|
java.lang.String |
FTPClientInterface.pwd()
Get the current remote working directory
|
java.lang.String |
FTPClient.pwd() |
void |
FTPClientInterface.quit()
Quit the FTP session
|
void |
FTPClient.quit() |
void |
FTPClientInterface.quitImmediately()
Quit the FTP session immediately.
|
void |
FTPClient.quitImmediately() |
java.lang.String |
FTPClient.quote(java.lang.String command)
Issue arbitrary ftp commands to the FTP server.
|
java.lang.String |
FTPClient.quote(java.lang.String command,
java.lang.String[] validCodes)
Issue arbitrary ftp commands to the FTP server.
|
protected void |
FTPClient.reconnect(java.lang.String cwd)
Reconnect to the server
|
void |
SecureFileTransferClient.rename(java.lang.String renameFromName,
java.lang.String renameToName)
Rename a remote file or directory.
|
void |
FTPClientInterface.rename(java.lang.String from,
java.lang.String to)
Rename a file or directory
|
void |
FTPClient.rename(java.lang.String from,
java.lang.String to) |
void |
FileTransferClientInterface.rename(java.lang.String renameFromName,
java.lang.String renameToName)
Rename a remote file or directory.
|
void |
FileTransferClient.rename(java.lang.String renameFromName,
java.lang.String renameToName)
Rename a remote file or directory.
|
RenameResult |
AsyncFileTransferClient.renameAsync(java.lang.String renameFromName,
java.lang.String renameToName,
AsyncCallback.Rename callback,
java.lang.Object tag)
Rename a remote file asynchronously.
|
void |
FTPClient.resetTransferMode(FTPTransferType previousType)
Reset the transfer mode back to what it should be, if
it has changed.
|
void |
FTPClient.restart(long size)
Issue the RESTart command to the remote server.
|
void |
FTPClientInterface.resume()
Make the next file transfer (put or get) resume.
|
void |
FTPClient.resume() |
void |
FTPClientInterface.resumeNextDownload(long offset)
Make the next download resume at a specific point.
|
void |
FTPClient.resumeNextDownload(long offset) |
void |
FTPClientInterface.rmdir(java.lang.String dir)
Delete the specified remote working directory
|
void |
FTPClient.rmdir(java.lang.String dir) |
FTPReply |
FTPControlSocket.sendCommand(java.lang.String command)
Send a command to the FTP server and
return the server's reply as a structured
reply object
|
FTPReply |
FTPClient.sendCommand(java.lang.String command)
Send a command to the server and get the reply
|
void |
FTPClient.sendServerWakeup()
Wake up the server during a transfer to prevent a
timeout from occuring.
|
void |
FTPClient.setActiveIPAddress(java.lang.String activeIP)
We can force PORT to send a fixed IP address, which can be useful with certain
NAT configurations.
|
void |
FTPClient.setActivePortRange(int lowest,
int highest)
Force a certain range of ports to be used in active mode.
|
void |
AdvancedSSHSettings.setAlgorithmEnabled(SSHFTPAlgorithm algorithm,
boolean enable)
Enable/disable the given algorithm.
|
void |
AdvancedSSHSettings.setAuthenticationType(SSHAuthenticationType sshAuthenticationType)
Set the authentication type to be used.
|
void |
AdvancedSSHSettings.setCompressionDelayed(boolean compressionDelayed)
Set flag to force compression delayed until after authentication (if indeed
compression is to be used).
|
void |
AdvancedFTPSettings.setConnectMode(FTPConnectMode mode)
Set the data transfer mode to either active (PORT) or passive (PASV).
|
void |
SecureFileTransferClient.setContentType(FTPTransferType type)
Set the transfer type for all connections, either ASCII or binary.
|
void |
FileTransferClientInterface.setContentType(FTPTransferType type)
Set the transfer type for all connections, either ASCII or binary.
|
void |
FileTransferClient.setContentType(FTPTransferType type)
Set the transfer type for all connections, either ASCII or binary.
|
void |
AsyncFileTransferClient.setContentType(FTPTransferType type)
Set the transfer type, either ASCII or binary.
|
void |
FTPClientInterface.setControlEncoding(java.lang.String controlEncoding)
Set the encoding used on the control channel.
|
void |
FTPClient.setControlEncoding(java.lang.String controlEncoding)
Set the control socket's encoding.
|
void |
FTPClient.setControlPort(int controlPort)
Deprecated.
Use
FTPClientInterface.setRemotePort(int) instead. |
protected void |
FTPControlSocket.setDataPort(java.net.InetAddress host,
int portNo)
Sets the data port on the server, that is, sends a PORT
command.
|
void |
AdvancedSSHSettings.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.
|
void |
AdvancedSSHSettings.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.
|
void |
AdvancedSSHSettings.setDisableWaitForChannelClose(boolean disableWaitForChannelClose)
Disables waiting for an acknowledgement from the server when
the client has requested that a channel be closed.
|
void |
SecureFileTransferClient.setInitialRemoteDirectory(java.lang.String directory)
Set the initial remote directory that all connections change to
immediately on connection.
|
void |
SecureFileTransferClient.setKeepAliveEnabled(boolean enabled)
Change the connection pool keep alive setting, switching it on or off.
|
void |
AdvancedSSHSettings.setMaxPacketSize(int maxPacketSize)
Set the maximum packet size.
|
void |
AdvancedSSHSettings.setMaxQueuedReadRequests(int maxQueuedReadRequests)
In SFTP, files are read block-by-block.
|
void |
SecureFileTransferClient.setModifiedTime(java.lang.String remoteFileName,
java.util.Date modifiedTime)
Set the modified-time of a remote file.
|
void |
FileTransferClientInterface.setModifiedTime(java.lang.String remoteFileName,
java.util.Date modifiedTime)
Set the modified-time of a remote file.
|
void |
FileTransferClient.setModifiedTime(java.lang.String remoteFileName,
java.util.Date modifiedTime)
Set the modified-time of a remote file.
|
ModifiedTimeResult |
AsyncFileTransferClient.setModifiedTimeAsync(java.lang.String remoteFileName,
java.util.Date modifiedTime,
AsyncCallback.SetModifiedTime callback,
java.lang.Object tag)
Set the modified-time of a remote file asynchronously.
|
void |
FTPClientInterface.setModTime(java.lang.String path,
java.util.Date modTime)
Set the last modified time (UTC) for the supplied file.
|
void |
FTPClient.setModTime(java.lang.String remoteFile,
java.util.Date modTime) |
void |
SecureFileTransferClient.setNetworkBufferSize(int networkBufferSize)
Set the size of the network buffers (SO_SNDBUF
and SO_RCVBUF).
|
void |
FileTransferClientInterface.setNetworkBufferSize(int networkBufferSize)
Set the size of the network buffers (SO_SNDBUF
and SO_RCVBUF).
|
void |
FileTransferClient.setNetworkBufferSize(int networkBufferSize)
Set the size of the network buffers (SO_SNDBUF
and SO_RCVBUF).
|
void |
AdvancedSSHSettings.setParallelWriteMode(boolean parallelWriteMode)
Set parallel write mode on or off.
|
void |
SecureFileTransferClient.setPassword(java.lang.String password)
Set the password of the user to log in with.
|
void |
FileTransferClientInterface.setPassword(java.lang.String password)
Set the password of the user to log in with.
|
void |
FileTransferClient.setPassword(java.lang.String password)
Set the password of the user to log in with.
|
void |
SecureFileTransferClient.setPermissions(java.lang.String remotePath,
int permissions)
Set the permissions of the supplied file or directory.
|
PermissionsResult |
AsyncFileTransferClient.setPermissionsAsync(java.lang.String remotePath,
int permissions,
AsyncCallback.SetPermissions callback,
java.lang.Object tag)
Set the permissions of the supplied file or directory.
|
void |
FTPClient.setPORTIP(java.lang.String IPAddress)
Deprecated.
|
void |
AdvancedSSHSettings.setPortsInKnownHosts(boolean portsInKnownHosts)
Change whether or not non-standard port numbers are used in known_hosts files.
|
void |
AdvancedSSHSettings.setPrivateKeyBytes(byte[] privateKeyBytes)
Reads the client's private key from the given byte-array.
|
void |
AdvancedSSHSettings.setPrivateKeyFile(java.lang.String privateKeyFileName)
Read the client's private key file, used for client authentication
if SSHAuthenticationType.PUBLIC_KEY is being used.
|
void |
AdvancedSSHSettings.setPrivateKeyFilePassphrase(java.lang.String privateKeyFilePassphrase)
Set the passphrase for the private key file.
|
void |
AdvancedSSHSettings.setPrivateKeyInputStream(java.io.InputStream privateKeyInputStream)
Read the client's private key from the given InputStream.
|
void |
SecureFileTransferClient.setProtocol(Protocol protocol)
Set the current protocol to be used.
|
void |
FTPClient.setRemoteAddr(java.net.InetAddress remoteAddr)
Set the remote address
|
void |
AdvancedSSHSettings.setRemoteEOL(java.lang.String remoteEOL)
Set a remoteEOL to be forced, irrespective of what is detected from server information.
|
void |
SecureFileTransferClient.setRemoteHost(java.lang.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.
|
void |
FTPClientInterface.setRemoteHost(java.lang.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.
|
void |
FTPClient.setRemoteHost(java.lang.String remoteHost) |
void |
FileTransferClientInterface.setRemoteHost(java.lang.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.
|
void |
FileTransferClient.setRemoteHost(java.lang.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.
|
void |
SecureFileTransferClient.setRemotePort(int remotePort)
Set the port to connect to on the remote server.
|
void |
FTPClientInterface.setRemotePort(int remotePort)
Set the port to connect to on the remote server.
|
void |
FTPClient.setRemotePort(int remotePort)
Set the control to connect to on the remote server.
|
void |
FileTransferClientInterface.setRemotePort(int remotePort)
Set the port to connect to on the remote server.
|
void |
FileTransferClient.setRemotePort(int remotePort)
Set the port to connect to on the remote server.
|
void |
SecureFileTransferClient.setServerValidationEnabled(boolean enabled)
Change the server validation setting, switching it on or off.
|
void |
AdvancedSSHSettings.setSSHAuthPrompts(SSHAuthPrompt[] authPrompts)
Set the array of authentication prompts that are to be used for keyboard-interactive
authentication.
|
void |
SecureFileTransferClient.setTimeout(int timeout)
Set the timeout for socket connections.
|
void |
FTPClientInterface.setTimeout(int millis)
Set the timeout on the underlying sockets and other resources
that may be used.
|
void |
FileTransferClientInterface.setTimeout(int timeout)
Set the timeout for socket connections.
|
void |
FileTransferClient.setTimeout(int timeout)
Set the timeout for socket connections.
|
void |
FTPClientInterface.setType(FTPTransferType type)
Set the transfer type
|
void |
FTPClient.setType(FTPTransferType type)
Set the transfer type
|
void |
SecureFileTransferClient.setUserName(java.lang.String userName)
Set the name of the user to log in with.
|
void |
FileTransferClientInterface.setUserName(java.lang.String userName)
Set the name of the user to log in with.
|
void |
FileTransferClient.setUserName(java.lang.String userName)
Set the name of the user to log in with.
|
boolean |
FTPClient.site(java.lang.String command)
Run a site-specific command on the
server.
|
long |
FTPClientInterface.size(java.lang.String remoteFile)
Get the size of a remote file.
|
long |
FTPClient.size(java.lang.String remoteFile) |
java.lang.String |
FTPClient.stat()
Sends stat message to enquire about the status of a
transfer.
|
java.lang.String |
FTPClientInterface.system()
Get a string representing the remote system
|
java.lang.String |
FTPClient.system()
Get the type of the OS at the server
|
void |
FXPTransfer.transferFile(java.lang.String sourceFile,
java.lang.String destFile)
Transfer a file between FTP servers using FXP.
|
java.lang.String |
SecureFileTransferClient.uploadByteArray(byte[] bytes,
java.lang.String remoteFileName,
WriteMode writeMode)
Upload a byte array to the FTP server.
|
UploadByteArrayResult |
AsyncFileTransferClient.uploadByteArrayAsync(byte[] bytes,
java.lang.String remoteFileName,
WriteMode writeMode,
AsyncCallback.UploadByteArray callback,
java.lang.Object tag)
Upload a byte array to the FTP server asynchronously.
|
java.lang.String |
SecureFileTransferClient.uploadFile(java.lang.String localFileName,
java.lang.String remoteFileName)
Upload a file to the FTP server.
|
java.lang.String |
FileTransferClientInterface.uploadFile(java.lang.String localFileName,
java.lang.String remoteFileName)
Upload a file to the FTP server.
|
java.lang.String |
FileTransferClient.uploadFile(java.lang.String localFileName,
java.lang.String remoteFileName)
Upload a file to the FTP server.
|
java.lang.String |
SecureFileTransferClient.uploadFile(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode)
Upload a file to the FTP server.
|
java.lang.String |
FileTransferClientInterface.uploadFile(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode)
Upload a file to the FTP server.
|
java.lang.String |
FileTransferClient.uploadFile(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode)
Upload a file to the FTP server.
|
UploadFileResult |
AsyncFileTransferClient.uploadFileAsync(java.lang.String localFileName,
java.lang.String remoteFileName,
AsyncCallback.UploadFile callback,
java.lang.Object tag)
Upload a file to the FTP server asynchronously.
|
UploadFileResult |
AsyncFileTransferClient.uploadFileAsync(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode,
AsyncCallback.UploadFile callback,
java.lang.Object tag)
Upload a file to the FTP server asynchronously.
|
void |
SecureFileTransferClient.uploadMultiple(java.lang.String localDir,
java.io.FileFilter filter)
Uploads local files from the supplied local directory that match the supplied FileFilter
into the current remote directory.
|
void |
SecureFileTransferClient.uploadMultiple(java.lang.String localDir,
java.lang.String wildcard)
Uploads local files from the supplied local directory that match the supplied wildcard
into the current remote directory.
|
void |
SecureFileTransferClient.uploadMultiple(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recursive)
Uploads local files from the supplied local directory that match the supplied wildcard
into the supplied remote directory.
|
void |
SecureFileTransferClient.uploadMultiple(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recursive)
Uploads local files from the supplied local directory that match the supplied wildcard
into the supplied remote directory.
|
UploadMultipleResult |
AsyncFileTransferClient.uploadMultipleAsync(java.lang.String localDir,
java.io.FileFilter filter,
AsyncCallback.UploadMultiple callback,
java.lang.Object tag)
Uploads local files from the supplied local directory that match the supplied FileFilter
into the current remote directory.
|
UploadMultipleResult |
AsyncFileTransferClient.uploadMultipleAsync(java.lang.String localDir,
java.lang.String wildcard,
AsyncCallback.UploadMultiple callback,
java.lang.Object tag)
Uploads local files from the supplied local directory that match the supplied wildcard
into the current remote directory.
|
UploadMultipleResult |
AsyncFileTransferClient.uploadMultipleAsync(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recursive,
AsyncCallback.UploadMultiple callback,
java.lang.Object tag)
Uploads local files from the supplied local directory that match the supplied wildcard
into the supplied remote directory.
|
UploadMultipleResult |
AsyncFileTransferClient.uploadMultipleAsync(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recursive,
AsyncCallback.UploadMultiple callback,
java.lang.Object tag)
Uploads local files from the supplied local directory that match the supplied wildcard
into the supplied remote directory.
|
FileTransferOutputStream |
SecureFileTransferClient.uploadStream(java.lang.String remoteFileName)
Upload a file to the FTP server by writing to a stream.
|
FileTransferOutputStream |
FileTransferClientInterface.uploadStream(java.lang.String remoteFileName)
Upload a file to the FTP server by writing to a stream.
|
FileTransferOutputStream |
FileTransferClient.uploadStream(java.lang.String remoteFileName)
Upload a file to the FTP server by writing to a stream.
|
FileTransferOutputStream |
SecureFileTransferClient.uploadStream(java.lang.String remoteFileName,
WriteMode writeMode)
Upload a file to the FTP server by writing to a stream.
|
FileTransferOutputStream |
FileTransferClientInterface.uploadStream(java.lang.String remoteFileName,
WriteMode writeMode)
Upload a file to the FTP server by writing to a stream.
|
FileTransferOutputStream |
FileTransferClient.uploadStream(java.lang.String remoteFileName,
WriteMode writeMode)
Upload a file to the FTP server by writing to a stream.
|
UploadStreamResult |
AsyncFileTransferClient.uploadStreamAsync(java.lang.String remoteFileName,
AsyncCallback.UploadStream callback,
java.lang.Object tag)
Upload a file to the FTP server by writing to a stream, asynchronously.
|
UploadStreamResult |
AsyncFileTransferClient.uploadStreamAsync(java.lang.String remoteFileName,
WriteMode writeMode,
AsyncCallback.UploadStream callback,
java.lang.Object tag)
Upload a file to the FTP server by writing to a stream, asynchronously.
|
static void |
SecureFileTransferClient.uploadURLFile(java.lang.String localFileName,
java.lang.String ftpURL)
Uploads the given file to the given FTP URL.
|
static void |
FileTransferClient.uploadURLFile(java.lang.String localFileName,
java.lang.String ftpURL)
Uploads the given file to the given FTP URL.
|
static FileTransferOutputStream |
SecureFileTransferClient.uploadURLStream(java.lang.String ftpURL)
Open an OutputStream for the given FTP URL.
|
static FileTransferOutputStream |
FileTransferClient.uploadURLStream(java.lang.String ftpURL)
Open an OutputStream for the given FTP URL.
|
void |
FTPClient.user(java.lang.String user)
Supply the user name to log into an account
on the FTP server.
|
FTPReply |
FTPControlSocket.validateReply(FTPReply reply,
java.lang.String expectedReplyCode)
Validate the response the host has supplied against the
expected reply.
|
void |
FTPClient.validateReply(FTPReply reply,
java.lang.String expectedReplyCode)
Validate an FTPReply
|
FTPReply |
FTPControlSocket.validateReply(FTPReply reply,
java.lang.String[] expectedReplyCodes)
Validate the response the host has supplied against the
expected reply.
|
void |
FTPClient.validateReply(FTPReply reply,
java.lang.String[] expectedReplyCodes)
Validate an FTPReply
|
FTPReply |
FTPControlSocket.validateReply(java.lang.String reply,
java.lang.String[] expectedReplyCodes)
Validate the response the host has supplied against the
expected reply.
|
void |
FTPClient.validateTransfer()
Validate that the put() or get() was successful.
|
protected void |
FTPClient.validateTransferOnError(java.io.IOException ex)
Validate a transfer when an error has occurred on the data channel.
|
Constructor and Description |
---|
AbstractFTPInputStream(FTPClient client,
java.lang.String remoteFile)
Constructor.
|
FTPClient(java.net.InetAddress remoteAddr)
Deprecated.
use setter methods to set properties
|
FTPClient(java.net.InetAddress remoteAddr,
int controlPort)
Deprecated.
use setter methods to set properties
|
FTPClient(java.net.InetAddress remoteAddr,
int controlPort,
int timeout)
Deprecated.
use setter methods to set properties
|
FTPClient(java.net.InetAddress remoteAddr,
int controlPort,
int timeout,
java.lang.String encoding)
Deprecated.
use setter methods to set properties
|
FTPClient(java.lang.String remoteHost)
Deprecated.
use setter methods to set properties
|
FTPClient(java.lang.String remoteHost,
int controlPort)
Deprecated.
use setter methods to set properties
|
FTPClient(java.lang.String remoteHost,
int controlPort,
int timeout)
Deprecated.
use setter methods to set properties
|
FTPClient(java.lang.String remoteHost,
int controlPort,
int timeout,
java.lang.String encoding)
Deprecated.
use setter methods to set properties
|
FTPControlSocket(java.net.InetAddress remoteAddr,
int controlPort,
int timeout,
java.lang.String encoding,
FTPMessageListener messageListener)
Constructor.
|
FTPControlSocket(java.net.InetAddress remoteAddr,
StreamSocket controlSock,
int timeout,
java.lang.String encoding,
FTPMessageListener messageListener)
Constructs a new
FTPControlSocket using the given
Socket object. |
FTPFileFactory(java.lang.String system)
Constructor
|
FTPInputStream(FTPClient client,
java.lang.String remoteFile)
Constructor.
|
FTPInputStream(FTPClient client,
java.lang.String remoteFile,
long offset)
Constructor.
|
FTPOutputStream(FTPClient client,
java.lang.String remoteFile)
Constructor.
|
FTPOutputStream(FTPClient client,
java.lang.String remoteFile,
boolean append)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
FTPOperationDiscardedException
This exception is thrown when an asynchronous operation is cancelled
by the user before it has been scheduled to run.
|
class |
FTPOperationInterruptedException
This 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).
|
Modifier and Type | Method and Description |
---|---|
boolean |
ConnectResult.cancelTask()
Cancel the asynchronous task that this result is for.
|
boolean |
AsyncResult.cancelTask()
Cancel the asynchronous task that this result is for.
|
void |
UploadByteArrayResult.endAsync()
This method is called to complete the asynchronous operation.
|
void |
TransferMultipleResult.endAsync()
This method is called to complete the asynchronous operation.
|
void |
TransferFileResult.endAsync()
This method is called to complete the asynchronous operation.
|
long |
SizeResult.endAsync() |
void |
RenameResult.endAsync() |
void |
PermissionsResult.endAsync() |
java.util.Date |
ModifiedTimeResult.endAsync() |
java.lang.String |
GetSystemTypeResult.endAsync()
This method is called to complete the asynchronous operation.
|
void |
ExistsResult.endAsync()
This method is called to complete the asynchronous operation.
|
java.lang.String |
ExecuteCommandResult.endAsync()
This method is called to complete the asynchronous operation.
|
byte[] |
DownloadByteArrayResult.endAsync()
This method is called to complete the asynchronous operation.
|
void |
DisconnectResult.endAsync()
This method is called to complete the asynchronous operation.
|
java.lang.String[] |
DirectoryNameListResult.endAsync()
This method is called to complete the asynchronous operation.
|
FTPFile[] |
DirectoryListResult.endAsync()
This method is called to complete the asynchronous operation.
|
void |
DirectoryListCallbackResult.endAsync()
This method is called to complete the asynchronous operation.
|
void |
DeleteMultipleFilesResult.endAsync()
This method is called to complete the asynchronous operation.
|
void |
DeleteFileResult.endAsync()
This method is called to complete the asynchronous operation.
|
void |
DeleteDirectoryResult.endAsync() |
void |
CreateDirectoryResult.endAsync()
This method is called to complete the asynchronous operation.
|
void |
ConnectResult.endAsync()
This method is called to complete the asynchronous operation.
|
void |
ChangeDirectoryResult.endAsync()
This method is called to complete the asynchronous operation.
|
protected void |
AsyncResult.endAsyncInternal()
Internal method that returns when the async method is completed.
|
void |
AsyncCallback.ChangeDirectory.onChangeDirectory(ChangeDirectoryResult result) |
void |
AsyncCallback.ExecuteCommand.onCommandExecuted(ExecuteCommandResult result) |
void |
AsyncCallback.Connect.onConnect(ConnectResult result) |
void |
AsyncCallback.CreateDirectory.onCreateDirectory(CreateDirectoryResult result) |
void |
AsyncCallback.DeleteDirectory.onDeleteDirectory(DeleteDirectoryResult result) |
void |
AsyncCallback.DeleteFile.onDeleteFile(DeleteFileResult result) |
void |
AsyncCallback.DeleteMultipleFiles.onDeleteMultipleFiles(DeleteMultipleFilesResult result) |
void |
AsyncCallback.DirectoryListCallback.onDirectoryListed(DirectoryListCallbackResult result) |
void |
AsyncCallback.DirectoryList.onDirectoryListed(DirectoryListResult result) |
void |
AsyncCallback.DirectoryNameList.onDirectoryListed(DirectoryNameListResult result) |
void |
AsyncCallback.Disconnect.onDisconnect(DisconnectResult result) |
void |
AsyncCallback.DownloadByteArray.onDownloadByteArray(DownloadByteArrayResult result) |
void |
AsyncCallback.DownloadFile.onDownloadFile(DownloadFileResult result) |
void |
AsyncCallback.DownloadStream.onDownloadingStream(FileTransferInputStream inStr,
DownloadStreamResult result) |
void |
AsyncCallback.DownloadMultiple.onDownloadMultiple(DownloadMultipleResult result) |
void |
AsyncCallback.DownloadStream.onDownloadStream(DownloadStreamResult result) |
void |
AsyncCallback.Exists.onExists(ExistsResult result) |
void |
AsyncCallback.GetModifiedTime.onGetModifiedTime(ModifiedTimeResult result) |
void |
AsyncCallback.Rename.onRename(RenameResult result) |
void |
AsyncCallback.SetModifiedTime.onSetModifiedTime(ModifiedTimeResult result) |
void |
AsyncCallback.SetPermissions.onSetPermissions(PermissionsResult result) |
void |
AsyncCallback.Size.onSize(SizeResult result) |
void |
AsyncCallback.GetSystemType.onSystemType(GetSystemTypeResult result) |
void |
AsyncCallback.UploadByteArray.onUploadByteArray(UploadByteArrayResult result) |
void |
AsyncCallback.UploadFile.onUploadFile(UploadFileResult result) |
void |
AsyncCallback.UploadStream.onUploadingStream(FileTransferOutputStream outStr,
UploadStreamResult result) |
void |
AsyncCallback.UploadMultiple.onUploadMultiple(UploadMultipleResult result) |
void |
AsyncCallback.UploadStream.onUploadStream(UploadStreamResult result) |
Modifier and Type | Class and Description |
---|---|
class |
FTPIntegrityCheckException
Thrown an integrity check fails
|
Modifier and Type | Method and Description |
---|---|
void |
ProFTPClient.connect()
Connects to the server at the address and port number defined in the
constructor.
|
protected com.enterprisedt.net.ftp.internal.FTPDataSocket |
ProFTPControlSocket.createDataSocketPASV()
Request a data socket be created on the server, connect to it and return
our connected socket.
|
void |
ProFTPClient.enableModeZCompression()
Set MODE Z so that all subsequent transfers are compressed
|
java.lang.String |
ProFTPClient.getRemoteCRC(java.lang.String path)
Get the CRC-32 checksum for the named remote file.
|
protected void |
ProFTPClient.integrityCheckTransferCRC(byte[] localBytes,
java.lang.String remoteFile) |
protected void |
ProFTPClient.integrityCheckTransferCRC(java.lang.String localPath,
java.lang.String remoteFile) |
protected void |
ProFTPClient.integrityCheckTransferSize(long length,
java.lang.String remoteFile) |
void |
ProFTPClientInterface.mdelete(java.io.FileFilter filter)
Deletes all files matching the filter in the current remote directory only
|
void |
ProFTPClient.mdelete(java.io.FileFilter filter) |
void |
ProFTPClientInterface.mdelete(java.lang.String wildcard)
Deletes all files matching the wildcard in the current remote directory only
|
void |
ProFTPClient.mdelete(java.lang.String wildcard) |
void |
ProFTPClientInterface.mdelete(java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recurse)
Delete all the files in this directory (and its subdirectories if recurse is true) that match
the supplied filter.
|
void |
ProFTPClient.mdelete(java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recurse) |
void |
ProFTPClientInterface.mdelete(java.lang.String remoteDir,
java.lang.String wildcard,
boolean recurse)
Delete all the files in this directory (and its subdirectories if recurse is true) that match
the supplied wildcard.
|
void |
ProFTPClient.mdelete(java.lang.String remoteDir,
java.lang.String wildcard,
boolean recurse) |
void |
ProFTPClientInterface.mget(java.lang.String localDir,
java.io.FileFilter filter)
Get all files matching the filter in the current remote directory only into
the supplied local directory
|
void |
ProFTPClient.mget(java.lang.String localDir,
java.io.FileFilter filter) |
void |
ProFTPClientInterface.mget(java.lang.String localDir,
java.lang.String wildcard)
Get all files matching the filter in the current remote directory only into
the supplied local directory
|
void |
ProFTPClient.mget(java.lang.String localDir,
java.lang.String wildcard) |
void |
ProFTPClientInterface.mget(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recurse)
Gets this entire remote directory and its contents, recursively going
through the remote directory name supplied.
|
void |
ProFTPClient.mget(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recurse) |
void |
ProFTPClientInterface.mget(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recurse)
Gets this entire remote directory and its contents, recursively going
through the remote directory name supplied.
|
void |
ProFTPClient.mget(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recurse) |
void |
ProFTPClientInterface.mput(java.lang.String localDir,
java.io.FileFilter filter)
Put all files matching the wildcard in the supplied local directory only into
the current remote directory
|
void |
ProFTPClient.mput(java.lang.String localDir,
java.io.FileFilter filter) |
void |
ProFTPClientInterface.mput(java.lang.String localDir,
java.lang.String wildcard)
Put all files matching the wildcard in the supplied local directory only into
the current remote directory
|
void |
ProFTPClient.mput(java.lang.String localDir,
java.lang.String wildcard) |
void |
ProFTPClientInterface.mput(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recurse)
Puts this entire directory and its contents.
|
void |
ProFTPClient.mput(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recurse) |
void |
ProFTPClientInterface.mput(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recurse)
Puts this entire directory and its contents.
|
void |
ProFTPClient.mput(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recurse) |
protected void |
ProFTPClient.postTransferChecks(byte[] localBytes,
java.lang.String remotePath,
FTPTransferType type,
boolean append)
Can be overridden by subclasses to do any necessary post transfer
checking.
|
protected void |
ProFTPClient.postTransferChecks(java.lang.String localPath,
java.lang.String remotePath,
FTPTransferType type,
boolean append)
Can be overridden by subclasses to do any necessary post transfer
checking.
|
void |
ProFTPClientInterface.rmdir(java.lang.String remoteDir,
boolean recurse)
Delete this remote directory.
|
void |
ProFTPClient.rmdir(java.lang.String remoteDir,
boolean recurse) |
protected void |
ProFTPControlSocket.setDataPort(java.net.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|
|
Modifier and Type | Method and Description |
---|---|
CommandResult |
VersionCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
TypeCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
SiteCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
SetCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
ScriptCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
RmDirCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
RenameCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
RecordCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
QuoteCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
QuitCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
PwdCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
PutCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
ProtectCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
OpenCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
MPutCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
MkDirCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
MGetCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
MDeleteCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
LocalCdCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
LicenseCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
HelpCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
GetCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
EchoCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
DirCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
DeleteCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
DebugCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
CommentCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
CdUpCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
CdCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
CccCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
BinaryCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
AuthCommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
CommandResult |
ASCIICommand.execute(ScriptEngine engine,
ProFTPClientInterface ftp,
java.lang.String command,
java.lang.String args) |
Modifier and Type | Class and Description |
---|---|
class |
SSHFTPException
Thrown when an SFTP-related error occurs.
|
Modifier and Type | Method and Description |
---|---|
void |
SSHFTPClient.cancelResume() |
void |
SSHFTPClient.cdup() |
void |
SSHFTPClient.changeGroup(int gid,
java.lang.String path)
Sets the group ID for the file or directory.
|
void |
SSHFTPClient.changeMode(int permissions,
java.lang.String path)
Changes the access permissions or modes of the specified file or
directory.
|
void |
SSHFTPClient.changeMode(java.lang.String permissions,
java.lang.String path)
Changes the access permissions or modes of the specified file or
directory.
|
void |
SSHFTPClient.changeOwner(int uid,
java.lang.String path)
Sets the user ID to owner for the file or directory.
|
void |
SSHFTPClient.chdir(java.lang.String dir) |
protected void |
SCPClient.checkConnection(boolean shouldBeConnected)
Checks if the client has connected to the server and throws an exception
if it hasn't.
|
void |
SSHFTPClient.connect()
Connects to the server at the address and port number defined in the
constructor.
|
void |
SCPClient.connect()
Connects to the server at the address and port number defined in the
constructor.
|
protected void |
SCPClient.connectSSH()
Connects to the server at the address and port number defined in the
constructor.
|
void |
SSHFTPClient.delete(java.lang.String remoteFile) |
java.lang.String[] |
SSHFTPClient.dir() |
java.lang.String[] |
SSHFTPClient.dir(java.lang.String dirname) |
java.lang.String[] |
SSHFTPClient.dir(java.lang.String dirname,
boolean full) |
FTPFile[] |
SSHFTPClient.dirDetails(java.lang.String dirname) |
void |
SSHFTPClient.dirDetails(java.lang.String dirname,
DirectoryListCallback lister) |
java.lang.String |
SCPClient.executeCommand(java.lang.String command)
Execute a command on the remote server.
|
boolean |
SSHFTPClient.exists(java.lang.String remoteFile) |
FTPFile |
SSHFTPClient.fileDetails(java.lang.String name)
Get details about the named file
|
void |
SSHFTPClient.get(java.io.OutputStream destStream,
java.lang.String remoteFile) |
byte[] |
SSHFTPClient.get(java.lang.String remoteFile) |
void |
SSHFTPClient.get(java.lang.String localPath,
java.lang.String remoteFile) |
void |
SCPClient.get(java.lang.String localPath,
java.lang.String remoteFile)
Download a file
|
static SSHFTPPublicKey |
SSHFTPClient.getHostPublicKey(java.lang.String remoteHost)
Helper method that may be used to obtain a server's public key without
instantiating an
SSHFTPClient . |
static SSHFTPPublicKey |
SCPClient.getHostPublicKey(java.lang.String remoteHost)
Helper method that may be used to obtain a server's public key without
instantiating an
SCPClient . |
static SSHFTPPublicKey |
SSHFTPClient.getHostPublicKey(java.lang.String remoteHost,
int remotePort)
Helper method that may be used to obtain a server's public key without
instantiating an
SSHFTPClient . |
static SSHFTPPublicKey |
SCPClient.getHostPublicKey(java.lang.String remoteHost,
int remotePort)
Helper method that may be used to obtain a server's public key without
instantiating an
SCPClient . |
java.lang.String |
SSHFTPClient.getUmask()
Get the current umask
|
void |
SSHFTPClient.keepAlive()
Tries to keep the current connection alive by
sending an innocuous command to signal that the
client is still active
|
void |
SSHFTPClient.mdelete(java.io.FileFilter filter) |
void |
SSHFTPClient.mdelete(java.lang.String wildcard) |
void |
SSHFTPClient.mdelete(java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recurse) |
void |
SSHFTPClient.mdelete(java.lang.String remoteDir,
java.lang.String wildcard,
boolean recurse) |
void |
SSHFTPClient.mget(java.lang.String localDir,
java.io.FileFilter filter) |
void |
SSHFTPClient.mget(java.lang.String localDir,
java.lang.String wildcard) |
void |
SSHFTPClient.mget(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recurse) |
void |
SSHFTPClient.mget(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recurse) |
void |
SSHFTPClient.mkdir(java.lang.String dir) |
java.util.Date |
SSHFTPClient.modtime(java.lang.String remoteFile) |
void |
SSHFTPClient.mput(java.lang.String localDir,
java.io.FileFilter filter) |
void |
SSHFTPClient.mput(java.lang.String localDir,
java.lang.String wildcard) |
void |
SSHFTPClient.mput(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recurse) |
void |
SSHFTPClient.mput(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recurse) |
java.lang.String |
SSHFTPClient.put(byte[] bytes,
java.lang.String remoteFile) |
java.lang.String |
SSHFTPClient.put(byte[] bytes,
java.lang.String remoteFile,
boolean append) |
java.lang.String |
SSHFTPClient.put(java.io.InputStream srcStream,
java.lang.String remoteFile) |
java.lang.String |
SSHFTPClient.put(java.io.InputStream srcStream,
java.lang.String remoteFile,
boolean append) |
java.lang.String |
SSHFTPClient.put(java.lang.String localPath,
java.lang.String remoteFile) |
java.lang.String |
SCPClient.put(java.lang.String localPath,
java.lang.String remoteFile)
Upload a file.
|
java.lang.String |
SSHFTPClient.put(java.lang.String localPath,
java.lang.String remoteFile,
boolean append) |
java.lang.String |
SSHFTPClient.pwd() |
void |
SSHFTPClient.quit() |
void |
SCPClient.quit() |
void |
SSHFTPClient.quitImmediately() |
void |
SCPClient.quitImmediately() |
void |
SSHFTPClient.rename(java.lang.String from,
java.lang.String to) |
void |
SSHFTPClient.resume() |
void |
SSHFTPClient.resumeNextDownload(long offset)
Resumes the next download from the offset point, which must be smaller
than the length of the file to be downloaded.
|
void |
SSHFTPClient.rmdir(java.lang.String dir) |
void |
SSHFTPClient.rmdir(java.lang.String remoteDir,
boolean recurse) |
void |
SCPClient.setAuthentication(java.io.InputStream inStr,
java.lang.String userName,
java.lang.String keyFilePassphrase)
Set up the SFTP client to authenticate using a private/public key-pair.
|
void |
SCPClient.setAuthentication(java.lang.String user,
SSHAuthPrompt[] prompts)
Set up keyboard-interactive (KBI) authentication by supplying an array of responses
to possible prompts by the SSH server
|
void |
SCPClient.setAuthentication(java.lang.String userName,
java.lang.String password)
Set up user-name/password authentication.
|
void |
SCPClient.setAuthentication(java.lang.String userName,
java.lang.String password,
PasswordChanger pwdChanger)
Set up user-name/password authentication.
|
void |
SCPClient.setAuthentication(java.lang.String keyFileName,
java.lang.String userName,
java.lang.String keyFilePassphrase)
Set up the SFTP client to authenticate using a private/public key-pair.
|
void |
SCPClient.setAuthentication(java.lang.String keyFileName,
java.lang.String userName,
java.lang.String keyFilePassphrase,
java.lang.String userPassword)
Set up the SFTP client to authenticate using a private/public key-pair, followed
by password authentication.
|
void |
SCPClient.setAuthentication(java.lang.String keyFileName,
java.lang.String userName,
java.lang.String keyFilePassphrase,
java.lang.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.
|
void |
SCPClient.setAuthenticationChangePassword(java.lang.String userName,
java.lang.String oldPassword,
java.lang.String newPassword)
Set up user-name/password authentication, and change the user's password.
|
void |
SSHFTPClient.setConfigFlags(int configFlags)
Set the configuration flags.
|
void |
SSHFTPClient.setControlEncoding(java.lang.String controlEncoding)
Set the encoding.
|
void |
SSHFTPClient.setMaxPacketSize(int maxPacketSize)
Set the maximum packet size.
|
void |
SSHFTPClient.setModTime(java.lang.String path,
java.util.Date modTime)
Set the last modified time for the supplied file
|
void |
SCPClient.setRemoteHost(java.lang.String remoteHost) |
void |
SCPClient.setRemotePort(int port)
Set the SSH port of the remote host.
|
void |
SSHFTPClient.setServerResponseTimeout(long serverResponseTimeout)
Deprecated.
|
void |
SSHFTPClient.setTimeout(int millis) |
void |
SCPClient.setTimeout(int millis) |
void |
SSHFTPClient.setUmask(java.lang.String umask)
Sets the umask used to write permissions
|
void |
SCPClient.setValidator(SSHFTPValidator validator)
Sets the host validator.
|
long |
SSHFTPClient.size(java.lang.String remoteFile) |
java.lang.String |
SCPClient.system()
Get a string representing the remote system.
|
Constructor and Description |
---|
AbstractSFTPInputStream(SSHFTPClient client,
java.lang.String remoteFile)
Constructor.
|
SSHFTPInputStream(SSHFTPClient client,
java.lang.String remoteFile)
Constructor.
|
SSHFTPInputStream(SSHFTPClient client,
java.lang.String remoteFile,
long offset)
Constructor.
|
SSHFTPOutputStream(SSHFTPClient client,
java.lang.String remoteFile)
Constructor.
|
SSHFTPOutputStream(SSHFTPClient client,
java.lang.String remoteFile,
boolean append)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
SSLFTPCertificateException
This exception is thrown when an error relating to SSL/TLS certificates occurs.
|
class |
SSLFTPException
This exception is usually thrown when an error relating to the
FTPS protocol occurs.
|
Modifier and Type | Method and Description |
---|---|
void |
SSLFTPClient.auth(char command)
Required for certain implementations of implicit SSL.
|
void |
SSLFTPClient.auth(java.lang.String securityMechanism)
Switches the control-channel (the connection which carries commands)
to secure mode.
|
void |
SSLFTPClient.ccc()
Clears the control channel, setting it back to plain text.
|
void |
SSLFTPClient.connect()
Connects to the server at the address and port number defined
in the constructor.
|
protected com.enterprisedt.net.ftp.internal.FTPDataSocket |
SSLFTPControlSocket.createDataSocketPASV()
Request a data socket be created on the server, connect to it and return
our connected socket.
|
void |
SSLFTPClient.disableAllCipherSuites()
Disables all cipher-suites.
|
void |
SSLFTPClient.enableCipherSuite(SSLFTPCipherSuite cipherSuite)
Enables the given cipher-suite.
|
void |
SSLFTPClient.enableCipherSuites(SSLFTPCipherSuite[] cipherSuites)
Enables the given cipher-suites.
|
static SSLFTPCertificate |
SSLFTPClient.getServerCertificate(java.lang.String hostName)
Connects to the given explicit FTPS server and retrieves its certificate.
|
static SSLFTPCertificate |
SSLFTPClient.getServerCertificate(java.lang.String hostName,
int remotePort)
Connects to the given explicit FTPS server and retrieves its certificate.
|
static SSLFTPCertificate |
SSLFTPClient.getServerCertificate(java.lang.String hostName,
int remotePort,
boolean isImplicit)
Connects to the given implicit or explicit FTPS server and retrieves its certificate.
|
static java.lang.String |
SSLFTPClient.getServerSecurityMechanism(java.lang.String remoteHost)
Returns the safest explicit FTPS security mechanism supported by the server.
|
static java.lang.String |
SSLFTPClient.getServerSecurityMechanism(java.lang.String remoteHost,
int remotePort)
Returns the safest explicit FTPS security mechanism supported by the server.
|
void |
SSLFTPClient.loadClientCertificate(java.io.InputStream inputStream,
java.lang.String password)
Loads the client's private key and certificate in PEM format from
the given input-stream.
|
void |
SSLFTPClient.loadClientCertificate(java.lang.String path,
java.lang.String password)
Loads the client's private key and certificate in PEM format from the given file.
|
void |
SSLFTPClient.loadClientKeyFile(java.io.InputStream inputStream,
java.lang.String password)
Deprecated.
Use
setClientCertificate<(inputStream, password)/code>. |
void |
SSLFTPClient.loadClientKeyFile(java.lang.String path,
java.lang.String password)
Deprecated.
Use
loadClientCertificate<(path, password)/code>. |
void |
SSLFTPClient.loadRootCertificates(java.io.InputStream inputStream)
|
void |
SSLFTPClient.loadRootCertificates(java.lang.String path)
|
void |
SSLFTPClient.pbsz(int bufferSize)
Defines the buffer-size to be used on data-connections.
|
void |
SSLFTPClient.prot(char command)
Defines the security-level of subsequent data-transfers.
|
protected void |
SSLFTPClient.reconnect(java.lang.String cwd)
Reconnect to the server
|
void |
SSLFTPClient.setConfigFlags(int configFlags)
Set the configuration flags which control various compatibility
features.
|
void |
SSLFTPClient.setCustomValidator(SSLFTPValidator newValidator)
Sets the validator.
|
protected void |
SSLFTPControlSocket.setDataPort(java.net.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|
|
void |
SSLFTPClient.setValidateServer(boolean validate)
Determines whether or not this client will attempt to validate
server certificates.
|
void |
SSLFTPControlSocket.shutdownSSL() |
Constructor and Description |
---|
SSLFTPClient()
Constructs an FTPS client for the given remote host.
|
Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.