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
  • 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 interface RemoteFileOperations<org.apache.commons.net.ftp.FTPFile>
      Overrides:
      connect in class FtpOperations
      Parameters:
      configuration - configuration
      exchange - 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 class FtpOperations