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 SummaryModifier 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- 
inboundAdapterpublic 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.
 
- 
inboundAdapterpublic 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.
 
- 
inboundStreamingAdapterpublic 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.
 
- 
inboundStreamingAdapterpublic 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.
 
- 
outboundAdapterpublic 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.
 
- 
outboundAdapterpublic 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.
 
- 
outboundAdapterAFtpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
- ftpRemoteFileTemplate- the remote file template.
- Returns:
- the spec.
- Since:
- 5.4
 
- 
outboundAdapterpublic 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
 
- 
outboundGatewaypublic 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- the- SessionFactory.
- command- the command to perform on the FTP.
- expression- the remoteFilePath SpEL expression.
- Returns:
- the FtpOutboundGatewaySpec
 
- 
outboundGatewaypublic 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- the- SessionFactory.
- command- the command to perform on the FTP.
- expression- the remoteFilePath SpEL expression.
- Returns:
- the FtpOutboundGatewaySpec
- See Also:
 
- 
outboundGatewaypublic 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- the- RemoteFileTemplate.
- command- the command to perform on the FTP.
- expression- the remoteFilePath SpEL expression.
- Returns:
- the FtpOutboundGatewaySpec
- See Also:
 
- 
outboundGatewaypublic 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- the- RemoteFileTemplate.
- command- the command to perform on the FTP.
- expression- the remoteFilePath SpEL expression.
- Returns:
- the FtpOutboundGatewaySpec
- See Also:
 
- 
outboundGatewaypublic 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- the- SessionFactoryto connect to.
- messageSessionCallback- the- MessageSessionCallbackto perform SFTP operation(s) with the- Messagecontext.
- Returns:
- the FtpOutboundGatewaySpec
- See Also:
 
 
-