Example usage for org.springframework.integration.file.remote ClientCallback doWithClient

List of usage examples for org.springframework.integration.file.remote ClientCallback doWithClient

Introduction

In this page you can find the example usage for org.springframework.integration.file.remote ClientCallback doWithClient.

Prototype

T doWithClient(C client);

Source Link

Document

Called within the context of a org.springframework.integration.file.remote.session.Session .

Usage

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

protected <T> T doExecuteWithClient(final ClientCallback<FTPClient, T> callback) {
    return execute(session -> callback.doWithClient((FTPClient) session.getClientInstance()));
}