Easily Manage Clients Avoid complex installations and empower self-service across the enterprise for user registration, key management and more. Leverage High-Availability Get consistent performance without heavy administrative demand using a centralized configuration datastore and shared storage.
MFT Server Cross-platform, universal protocol server with easy administration, hybrid deployment support, and unparalleled flexibility and reliability MFT Gateway Easily add proxy servers in your DMZ in support of all your organization's compliance needs MFT Monitor Perform load testing and network scanning to ensure service levels will be met even during heavy system load.
Industry-Leading Security. What Real Users Are Saying. Service Delivery Manager. Automation Workflow Architect. Enterprise-Grade Support Services Support is included via phone, email or web portal. White Glove Onboarding. String getLocalChecksum java. File localFile Returns local checksum. Enumeration getLocalDirListing Gets local directory listing. Enumeration getMachineDirListing java. String dirname, java. FtpFile getMachineFileListing java.
Enumeration getNameListing java. OutputStream getOutputStream java. String getPortAddress Gets the external address to use when using active connections. String getProxyHostname Get proxy hostname.
String getProxyPassword Get proxy password. String getProxyType Get proxy type. String getProxyUsername Get proxy username.
String directory Get size of all files rescursively in a given remote directory. String getRemoteFileChecksum java. String remoteFile Returns remote file checksum. Vector getRemoteFileList java. String remoteDir Gets all the remote files from the current directory and subdirectories. TimeZone getTimeZone Get the associated timezone.
String command Looks for the command argument into the server features list to validate if it is supported java. String issueCommand java.
String cmd Issues the command to FTP server. String issueCommandCheck java. String cmd Issues command to FTP server. File makeLocalDir java. String directoryName Creates local directory. String filter Deletes multiple files matching regular in FTP server's current directory. Enumeration fileNames Downloads specified files in current working remote directory from FTP server to local directory.
String filter Downloads multiple files matching regular expression from FTP server's current directory. String filter Uploads multiple files matching regular expression to FTP server's current directory.
String remoteFile, java. File resumeDownload java. File localFile, java. String account Sets optional account of FTP server. String encoding Deprecated. KeyStore keystore, java. String password Sets optional client certificate to be used during authentication. String filename, java. String password, java. String storetype Sets optional client certificate to be used during authentication. ConnectionStrategy connectionType Sets the connection type.
String algorithm Sets algorithm used for SSL communications in default context. String provider Sets provider used for X algorithm in default context. String provider Sets provider used for keystore in default context. String protocol Sets protocol used for SSL communications in default context. String provider Sets provider used for TLS protocol in default context. String remoteName, java. Date date Sets file creation time with a new value. Date date Sets the file modification time with a new value.
String host Sets hostname of FTP server. LinkedList listeners Set the list of listeners. String password Sets password of FTP user. String proxyUsername, java. String proxyPassword Sets the username and password to use when for authentication with proxy server.
KeyStore keystore Sets optional server certificate to be used during authentication. String password Sets optional server certificate to be used during authentication. String storetype Sets optional server certificate to be used during authentication. TimeZone timeZone Set the timezone. String user Sets username of FTP user.
String remoteFile, boolean append Uploads file to FTP server where contents of file is not on disk but in memory. InputStream input, java. String extension, java. File localFile Uploads file to FTP server using temporary extension, then renames file back to original name once uploaded.
File localDir, int retryLimit, boolean performChecksum, java. String extension Uploads local directory and contents to FTP server. File localDir, int retryLimit, int retryInterval, boolean performChecksum, java. File localDir, java. String extension Uploads local directory and contents recursively to FTP server. String uploadUnique java. File file Uploads the file which is created in the current directory under a name unique to that directory.
File file, boolean useFilenameAsSeed Uploads the file which is created in the current directory under a name unique to that directory. InputStream in, java. String fileName Uploads the file which is created in the current directory under a name unique to that directory.
String fileName, boolean useFilenameAsSeed Uploads the file which is created in the current directory under a name unique to that directory. Methods inherited from class java. Value of ". Value of ".. Ftps public Ftps java. This is used for file timestamps.
Parameters: timeZone - getTimeZone public java. Returns: - boolean value setPreserveUploadTimestamp public void setPreserveUploadTimestamp boolean value Set upload modification time, replaces the last modified timestamp with that of the local file after upload is complete. Parameters: value - - boolean value setProxyAuthentication public void setProxyAuthentication java. To clear these settings invoke the clearProxySettings method. Returns: getProxyUsername public java.
Returns: username getProxyPassword public java. Returns: password getProxyHostname public java. Returns: port. Parameters: proxyHostname - the hostname or ip address of the proxy server proxyPort - the port of the proxy server See Also: clearProxySettings setProxyType public void setProxyType java. Parameters: proxyType - The proxy type. You must be connected to the FTP server prior to invoking this method. Example: file. Default block size is bytes. Returns: blocksize in bytes setCharacterEncoding public void setCharacterEncoding java.
This is helpful in instances where the FTP server uses a different character encoding than that used by the FTP client.
Parameters: encoding - the character encoding to be used getCharacterEncoding public java. Returns: the character encoding to be used setCompression public void setCompression boolean compression Sets whether the data will be compressed during the transfer.
Parameters: compression - Compression indicator. The data will be compressed if the Ftps server support this feature MODE Z command Returns: true data will be compressed, false otherwise. String password throws FtpException Sets optional client certificate to be used during authentication.
Default expected keystore format is JKS format. Existing certificate may be imported into keystore using the keytool utility provided in the Sun JDK. Example: keytool. String storetype throws FtpException Sets optional client certificate to be used during authentication. Parameters: value - true if should connect before sending data transfer command, false otherwise send the command in passive mode getConnectBeforeCommand public boolean getConnectBeforeCommand Gets whether connection will be established before sending data transfer command.
Returns: true if should connect before sending data transfer command, false otherwise isConnected public boolean isConnected Checks if client is connected to FTP server. If connection has been lost then a value of false will be returned and an FtpConnectionLostEvent will be fired to any subscribed FtpListener.
Default connection type is Ftps. Parameters: connectionType - the current connection type getConnectionType public Ftps. Returns: the current connection type setContext public void setContext javax. Returns: list of listeners. Parameters: listeners - setProtocol public void setProtocol java. Parameters: provider - the provider getContextAlgorithmProvider public java.
Returns: algorithm provider getContextKeystoreProvider public java. Default is null. Returns: keystore provider getContextProtocolProvider public java.
Returns: protocol provider setContextAlgorithm public void setContextAlgorithm java. Default is SunX Parameters: algorithm - the algorithm getContextAlgorithm public java. DownloadFileOperation static class Sftp. RecursiveDeleteOperation static class Sftp. RecursiveFileListOperation static interface Sftp. RemoteDirectory static class Sftp. SftpPipedInputStream static class Sftp. SftpPipedOutputStream static class Sftp. UploadDirectoryOperation static class Sftp.
Gets directory listing from SSH server where file names matches the regular expression. Sets the window size a number of request packets without response in pipeline transfer mode. Interrupts the current data transfer and sets interrupted flag to true. Deletes multiple files matching regular expression from SSH server's current directory. Downloads specified files in current working remote directory from SSH server to local directory.
Sets data transfer mode to automatic detect Any files with a base Content-Type value of text will be transferred using ASCII, all other files will be transfered using binary. File currentLocalDirectory, java. Logger logger Creates a new client instance. Sets the proxy authentication username and password to use with proxy server. To clear these settings invoke the clearProxySettings method. Sets the proxy hostname and port for this connection. Gets data transfer mode for current session.
You must be connected to the SSH server prior to invoking this method. Sets data transfer mode to binary. Example: file. Sets the transfer buffer size for download operation. The block size should mot exceed 64 Kb for the pipe-lining transfers. Default is null. Otherwise, client will perform conversion from local system line terminator to specified destination line terminator during transfer. Turn off file access logging. This is different from Sftp.
Such an exception may arise if the connection to the remote server is lost during an operation. Turn on file access logging. Sets a debug stream. Works only if DebugStreamLogger was set while instance creation. Gets local directory to be used in SSH session. Downloads will be stored relative to local directory.
Uploads are performed relative to current local directory. Sets local directory to be used in session. For example, to list all files with extension. Regular expressions may be used to specify multiple files e. Resumes download of file from SSH server.
Downloads are stored relative to current local directory. Do not use this method to download a directory, see downloadDir String method. Downloads multiple files matching filter from SSH server's current directory.
0コメント