Class FtpsOperations
java.lang.Object
org.apache.camel.component.file.remote.FtpOperations
org.apache.camel.component.file.remote.FtpsOperations
- All Implemented Interfaces:
org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile>
,RemoteFileOperations<org.apache.commons.net.ftp.FTPFile>
FTP Secure (FTP over SSL/TLS) operations
-
Field Summary
Fields inherited from class org.apache.camel.component.file.remote.FtpOperations
client, clientActivityListener, clientConfig, endpoint, log
-
Constructor Summary
ConstructorDescriptionFtpsOperations
(org.apache.commons.net.ftp.FTPSClient client, org.apache.commons.net.ftp.FTPClientConfig clientConfig) -
Method Summary
Modifier and TypeMethodDescriptionboolean
connect
(RemoteFileConfiguration configuration, org.apache.camel.Exchange exchange) Connects to the remote serverprotected org.apache.commons.net.ftp.FTPSClient
Methods inherited from class org.apache.camel.component.file.remote.FtpOperations
buildDirectory, changeCurrentDirectory, changeToParentDirectory, deleteFile, disconnect, doConnect, doDisconnect, existsFile, fastExistsFile, forceDisconnect, getClient, getClientActivityListener, getCurrentDirectory, isConnected, listFiles, listFiles, newGenericFile, releaseRetrievedFileResources, renameFile, retrieveFile, sendNoop, sendSiteCommand, setClientActivityListener, setEndpoint, storeFile
-
Constructor Details
-
FtpsOperations
public FtpsOperations(org.apache.commons.net.ftp.FTPSClient client, org.apache.commons.net.ftp.FTPClientConfig clientConfig)
-
-
Method Details
-
connect
public boolean connect(RemoteFileConfiguration configuration, org.apache.camel.Exchange exchange) throws org.apache.camel.component.file.GenericFileOperationFailedException Description copied from interface:RemoteFileOperations
Connects to the remote server- Specified by:
connect
in interfaceRemoteFileOperations<org.apache.commons.net.ftp.FTPFile>
- Overrides:
connect
in classFtpOperations
- Parameters:
configuration
- configurationexchange
- the exchange that trigger the connect (if any)- Returns:
- true if connected
- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
- can be thrown
-
getFtpClient
protected org.apache.commons.net.ftp.FTPSClient getFtpClient()- Overrides:
getFtpClient
in classFtpOperations
-