Example usage for org.springframework.integration.ftp.session FtpSession FtpSession

List of usage examples for org.springframework.integration.ftp.session FtpSession FtpSession

Introduction

In this page you can find the example usage for org.springframework.integration.ftp.session FtpSession FtpSession.

Prototype

public FtpSession(FTPClient client) 

Source Link

Usage

From source file:org.springframework.integration.ftp.session.AbstractFtpSessionFactory.java

public Session<FTPFile> getSession() {
    try {//w  w w. ja v  a 2s  .  com
        return new FtpSession(this.createClient());
    } catch (Exception e) {
        throw new IllegalStateException("failed to create FTPClient", e);
    }
}