List of usage examples for org.springframework.integration.ftp.dsl FtpOutboundGatewaySpec FtpOutboundGatewaySpec
FtpOutboundGatewaySpec(FtpOutboundGateway outboundGateway)
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.//from www. j ava2 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./* ww w.jav a 2 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)); }
From source file:org.springframework.integration.ftp.dsl.Ftp.java
/** * Produce a {@link FtpOutboundGatewaySpec} based on the * {@link MessageSessionCallback}./*from w w w. j a v a 2 s .c om*/ * @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)); }