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 action is performed.postProcessClientBeforeConnect: This handles additional initialization before the client connection action is performed.BufferSize: This defines the size of the buffered data that gets transferred over FTP.ClientMode: There...