Example usage for org.springframework.integration.ftp.gateway FtpOutboundGateway FtpOutboundGateway

List of usage examples for org.springframework.integration.ftp.gateway FtpOutboundGateway FtpOutboundGateway

Introduction

In this page you can find the example usage for org.springframework.integration.ftp.gateway FtpOutboundGateway FtpOutboundGateway.

Prototype

public FtpOutboundGateway(RemoteFileTemplate<FTPFile> remoteFileTemplate, String command) 

Source Link

Document

Construct an instance with the supplied remote file template and command ('ls', 'nlst', 'put' or 'mput').

Usage

From source file:org.springframework.integration.ftp.dsl.Ftp.java

/**
 * Produce a {@link FtpOutboundGatewaySpec} based on the
 * {@link MessageSessionCallback}.//  w  w  w  .jav  a2  s .  c o m
 * @param sessionFactory the {@link SessionFactory} to connect to.
 * @param messageSessionCallback the {@link MessageSessionCallback} to perform SFTP
 * operation(s) with the {@code Message} context.
 * @return the {@link FtpOutboundGatewaySpec}
 * @see MessageSessionCallback
 */
public static FtpOutboundGatewaySpec outboundGateway(SessionFactory<FTPFile> sessionFactory,
        MessageSessionCallback<FTPFile, ?> messageSessionCallback) {
    return new FtpOutboundGatewaySpec(new FtpOutboundGateway(sessionFactory, messageSessionCallback));
}