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, String expression) Produce aFtpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static FtpOutboundGatewaySpecoutboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aFtpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static FtpOutboundGatewaySpecoutboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, String command, String expression) Produce aFtpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static FtpOutboundGatewaySpecoutboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aFtpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.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, 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, 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, String expression) Produce aFtpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
sessionFactory- theSessionFactory.command- the command to perform on the FTP.expression- the remoteFilePath SpEL expression.- Returns:
- the
FtpOutboundGatewaySpec
-
outboundGateway
public static FtpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, String command, String expression) Produce aFtpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
sessionFactory- theSessionFactory.command- the command to perform on the FTP.expression- the remoteFilePath SpEL expression.- Returns:
- the
FtpOutboundGatewaySpec - 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 remoteFilePath.- Parameters:
remoteFileTemplate- theRemoteFileTemplate.command- the command to perform on the FTP.expression- the remoteFilePath SpEL expression.- Returns:
- the
FtpOutboundGatewaySpec - See Also:
-
outboundGateway
public static FtpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, String command, String expression) Produce aFtpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
remoteFileTemplate- theRemoteFileTemplate.command- the command to perform on the FTP.expression- the remoteFilePath 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:
-