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>
public class FtpsOperations extends FtpOperations
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
Constructors Constructor Description FtpsOperations(org.apache.commons.net.ftp.FTPSClient client, org.apache.commons.net.ftp.FTPClientConfig clientConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
connect(RemoteFileConfiguration configuration, org.apache.camel.Exchange exchange)
Connects to the remote serverprotected org.apache.commons.net.ftp.FTPSClient
getFtpClient()
-
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
-
-
-
-
Method Detail
-
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
-
-