List of usage examples for org.springframework.integration.ftp.gateway FtpOutboundGateway FtpOutboundGateway
public FtpOutboundGateway(RemoteFileTemplate<FTPFile> remoteFileTemplate, String command)
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)); }