Book Image

Mastering Spring Application Development

By : Anjana Mankale
Book Image

Mastering Spring Application Development

By: Anjana Mankale

Overview of this book

Table of Contents (19 chapters)
Mastering Spring Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Spring Integration with FTP

FTP involves sending files over the Internet from one computer to another using a file transfer protocol. Spring Integration also provides support to the file transfer protocol. File transfer can be done via FTP or using SFTP (secure FTP).

Some of the abbreviations used in FTP scenarios are listed as follows:

  • FTP: File Transfer Protocol.

  • FTPS: FTP Secure is an extension to FTP that adds support for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) cryptographic protocols.

  • SFTP: SSH File Transfer Protocol, that is, FTP over Secure Shell, protocol.

In a real scenario, a file server will have an FTP address, username and password. The clients connect to the server to transfer the files. We can either upload a file to a remote location download a file from a remote location using FTP.

Spring's integration package supports both sending and receiving files from the FTP or FTPS servers. It provides certain endpoints, and here are the endpoints...