O'Reilly logo

Mastering Spring Application Development by Anjana Mankale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required