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, String expression) 

Source Link

Document

Construct an instance with the supplied remote file template, a command ('ls', 'get' etc), and an expression to determine the filename.

Usage

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

public static FtpOutboundGatewaySpec outboundGateway(SessionFactory<FTPFile> sessionFactory, String command,
        String expression) {//  www  . j av  a  2  s.c o  m
    return new FtpOutboundGatewaySpec(new FtpOutboundGateway(sessionFactory, command, expression));
}

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

/**
 * Produce a {@link FtpOutboundGatewaySpec} based on the {@link SessionFactory},
 * {@link AbstractRemoteFileOutboundGateway.Command} and {@code expression} for the
 * remoteFilePath.//w w  w. j  a v  a  2  s.  co  m
 * @param sessionFactory the {@link SessionFactory}.
 * @param command the command to perform on the FTP.
 * @param expression the remoteFilePath SpEL expression.
 * @return the {@link FtpOutboundGatewaySpec}
 * @see RemoteFileTemplate
 */
public static FtpOutboundGatewaySpec outboundGateway(SessionFactory<FTPFile> sessionFactory, String command,
        String expression) {
    return new FtpOutboundGatewaySpec(new FtpOutboundGateway(sessionFactory, command, expression));
}

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

/**
 * Produce a {@link FtpOutboundGatewaySpec} based on the {@link RemoteFileTemplate},
 * {@link AbstractRemoteFileOutboundGateway.Command} and {@code expression} for the
 * remoteFilePath.//from w ww. j a v  a2  s .  co  m
 * @param remoteFileTemplate the {@link RemoteFileTemplate}.
 * @param command the command to perform on the FTP.
 * @param expression the remoteFilePath SpEL expression.
 * @return the {@link FtpOutboundGatewaySpec}
 * @see RemoteFileTemplate
 */
public static FtpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<FTPFile> remoteFileTemplate,
        String command, String expression) {
    return new FtpOutboundGatewaySpec(new FtpOutboundGateway(remoteFileTemplate, command, expression));
}