Class Ftp
java.lang.Object
org.springframework.integration.ftp.dsl.Ftp
The factory for FTP components.
- Since:
 - 5.0
 - Author:
 - Artem Bilan, Gary Russell, Deepak Gunasekaran
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic FtpInboundChannelAdapterSpecinboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory) AFtpInboundChannelAdapterSpecfactory for an inbound channel adapter spec.static FtpInboundChannelAdapterSpecinboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, Comparator<File> receptionOrderComparator) AFtpInboundChannelAdapterSpecfactory for an inbound channel adapter spec.inboundStreamingAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate) AFtpStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.inboundStreamingAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, Comparator<org.apache.commons.net.ftp.FTPFile> receptionOrderComparator) AFtpStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.static FtpMessageHandlerSpecoutboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory) AFtpMessageHandlerSpecfactory for an outbound channel adapter spec.static FtpMessageHandlerSpecoutboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, FileExistsMode fileExistsMode) AFtpMessageHandlerSpecfactory for an outbound channel adapter spec.static FtpMessageHandlerSpecoutboundAdapter(FtpRemoteFileTemplate ftpRemoteFileTemplate) AFtpMessageHandlerSpecfactory for an outbound channel adapter spec.static FtpMessageHandlerSpecoutboundAdapter(FtpRemoteFileTemplate ftpRemoteFileTemplate, FileExistsMode fileExistsMode) AFtpMessageHandlerSpecfactory for an outbound channel adapter spec.static FtpOutboundGatewaySpecoutboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, String command) Produce aFtpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Command.static FtpOutboundGatewaySpecoutboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, String command, String expression) Produce aFtpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remote path.static FtpOutboundGatewaySpecoutboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command) Produce aFtpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Command.static FtpOutboundGatewaySpecoutboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aFtpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remote path.static FtpOutboundGatewaySpecoutboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, String command) Produce aFtpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Command.static FtpOutboundGatewaySpecoutboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, String command, String expression) Produce aFtpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remote path.static FtpOutboundGatewaySpecoutboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command) Produce aFtpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Command.static FtpOutboundGatewaySpecoutboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aFtpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remote path.static FtpOutboundGatewaySpecoutboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, MessageSessionCallback<org.apache.commons.net.ftp.FTPFile, ?> messageSessionCallback) Produce aFtpOutboundGatewaySpecbased on theMessageSessionCallback. 
- 
Method Details
- 
inboundAdapter
public static FtpInboundChannelAdapterSpec inboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory) AFtpInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
 sessionFactory- the session factory.- Returns:
 - the spec.
 
 - 
inboundAdapter
public static FtpInboundChannelAdapterSpec inboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, @Nullable Comparator<File> receptionOrderComparator) AFtpInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
 sessionFactory- the session factory.receptionOrderComparator- the comparator.- Returns:
 - the spec.
 
 - 
inboundStreamingAdapter
public static FtpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate) AFtpStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
 remoteFileTemplate- the remote file template.- Returns:
 - the spec.
 
 - 
inboundStreamingAdapter
public static FtpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, @Nullable Comparator<org.apache.commons.net.ftp.FTPFile> receptionOrderComparator) AFtpStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
 remoteFileTemplate- the remote file template.receptionOrderComparator- the comparator.- Returns:
 - the spec.
 
 - 
outboundAdapter
public static FtpMessageHandlerSpec outboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory) AFtpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
 sessionFactory- the session factory.- Returns:
 - the spec.
 
 - 
outboundAdapter
public static FtpMessageHandlerSpec outboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, FileExistsMode fileExistsMode) AFtpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
 sessionFactory- the session factory.fileExistsMode- the file exists mode.- Returns:
 - the spec.
 
 - 
outboundAdapter
AFtpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
 ftpRemoteFileTemplate- the remote file template.- Returns:
 - the spec.
 - Since:
 - 5.4
 
 - 
outboundAdapter
public static FtpMessageHandlerSpec outboundAdapter(FtpRemoteFileTemplate ftpRemoteFileTemplate, FileExistsMode fileExistsMode) AFtpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
 ftpRemoteFileTemplate- the remote file template.fileExistsMode- the file exists mode.- Returns:
 - the spec.
 - Since:
 - 5.4
 
 - 
outboundGateway
public static FtpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command) Produce aFtpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Command.- Parameters:
 sessionFactory- theSessionFactory.command- the command to perform on the FTP.- Returns:
 - the 
FtpOutboundGatewaySpec - Since:
 - 6.4
 
 - 
outboundGateway
public static FtpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, @Nullable String expression) Produce aFtpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remote path.- Parameters:
 sessionFactory- theSessionFactory.command- the command to perform on the FTP.expression- the remote path SpEL expression.- Returns:
 - the 
FtpOutboundGatewaySpec 
 - 
outboundGateway
public static FtpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, String command) Produce aFtpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Command.- Parameters:
 sessionFactory- theSessionFactory.command- the command to perform on the FTP.- Returns:
 - the 
FtpOutboundGatewaySpec - Since:
 - 6.4
 - See Also:
 
 - 
outboundGateway
public static FtpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, String command, @Nullable String expression) Produce aFtpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remote path.- Parameters:
 sessionFactory- theSessionFactory.command- the command to perform on the FTP.expression- the remote path SpEL expression.- Returns:
 - the 
FtpOutboundGatewaySpec - See Also:
 
 - 
outboundGateway
public static FtpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command) Produce aFtpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Command.- Parameters:
 remoteFileTemplate- theRemoteFileTemplate.command- the command to perform on the FTP.- Returns:
 - the 
FtpOutboundGatewaySpec - Since:
 - 6.4
 - See Also:
 
 - 
outboundGateway
public static FtpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aFtpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remote path.- Parameters:
 remoteFileTemplate- theRemoteFileTemplate.command- the command to perform on the FTP.expression- the remote path SpEL expression.- Returns:
 - the 
FtpOutboundGatewaySpec - See Also:
 
 - 
outboundGateway
public static FtpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, String command) Produce aFtpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Command.- Parameters:
 remoteFileTemplate- theRemoteFileTemplate.command- the command to perform on the FTP.- Returns:
 - the 
FtpOutboundGatewaySpec - Since:
 - 6.4
 - See Also:
 
 - 
outboundGateway
public static FtpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, String command, @Nullable String expression) Produce aFtpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remote path.- Parameters:
 remoteFileTemplate- theRemoteFileTemplate.command- the command to perform on the FTP.expression- the remote path SpEL expression.- Returns:
 - the 
FtpOutboundGatewaySpec - See Also:
 
 - 
outboundGateway
public static FtpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, MessageSessionCallback<org.apache.commons.net.ftp.FTPFile, ?> messageSessionCallback) Produce aFtpOutboundGatewaySpecbased on theMessageSessionCallback.- Parameters:
 sessionFactory- theSessionFactoryto connect to.messageSessionCallback- theMessageSessionCallbackto perform SFTP operation(s) with theMessagecontext.- Returns:
 - the 
FtpOutboundGatewaySpec - See Also:
 
 
 -