FTPSessionFactory and FTPSSessionFactory

In this section, let's look at the two core classes for FTP using Spring integration, FTPSessionFactory and FTPSSessionFactory. These classes have lot of getters, setters, and instance variables, which give information about the data, file, and FTP mode. The instance variables and their usage are described as follows:

The class org.springframework.integration.ftp.session.DefaultFtpSessionFactory is used to configure the FTP details in the application. The class is configured as a simple bean in the configuration XML file .The class has getters and setters for the following:

  • Session: This accepts session variables.
  • postProcessClientAfterConnect: This handles additional initialization after the client connection ...

Get Mastering Spring Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.