Class Sftp
java.lang.Object
org.springframework.integration.sftp.dsl.Sftp
The factory for SFTP components.
- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell, Deepak Gunasekaran
-
Method Summary
Modifier and TypeMethodDescriptioninboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory) AnSftpInboundChannelAdapterSpecfactory for an inbound channel adapter spec.inboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, Comparator<File> receptionOrderComparator) AnSftpInboundChannelAdapterSpecfactory for an inbound channel adapter spec.inboundStreamingAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate) AnSftpStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.inboundStreamingAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, Comparator<com.jcraft.jsch.ChannelSftp.LsEntry> receptionOrderComparator) AnSftpStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.static SftpMessageHandlerSpecoutboundAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate) Deprecated.static SftpMessageHandlerSpecoutboundAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, FileExistsMode fileExistsMode) Deprecated.static SftpMessageHandlerSpecoutboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory) AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.static SftpMessageHandlerSpecoutboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, FileExistsMode fileExistsMode) AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.static SftpMessageHandlerSpecoutboundAdapter(SftpRemoteFileTemplate sftpRemoteFileTemplate) AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.static SftpMessageHandlerSpecoutboundAdapter(SftpRemoteFileTemplate sftpRemoteFileTemplate, FileExistsMode fileExistsMode) AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.static SftpOutboundGatewaySpecoutboundGateway(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, String command, String expression) Produce aSftpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SftpOutboundGatewaySpecoutboundGateway(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSftpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SftpOutboundGatewaySpecoutboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, String command, String expression) Produce aSftpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SftpOutboundGatewaySpecoutboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSftpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SftpOutboundGatewaySpecoutboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, MessageSessionCallback<com.jcraft.jsch.ChannelSftp.LsEntry, ?> messageSessionCallback) Produce aSftpOutboundGatewaySpecbased on theMessageSessionCallback.
-
Method Details
-
inboundAdapter
public static SftpInboundChannelAdapterSpec inboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory) AnSftpInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
sessionFactory- the session factory.- Returns:
- the spec.
-
inboundAdapter
public static SftpInboundChannelAdapterSpec inboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, Comparator<File> receptionOrderComparator) AnSftpInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
sessionFactory- the session factory.receptionOrderComparator- the comparator.- Returns:
- the spec.
-
inboundStreamingAdapter
public static SftpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate) AnSftpStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
remoteFileTemplate- the remote file template.- Returns:
- the spec.
-
inboundStreamingAdapter
public static SftpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, Comparator<com.jcraft.jsch.ChannelSftp.LsEntry> receptionOrderComparator) AnSftpStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
remoteFileTemplate- the remote file template.receptionOrderComparator- the comparator.- Returns:
- the spec.
-
outboundAdapter
public static SftpMessageHandlerSpec outboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory) AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
sessionFactory- the session factory.- Returns:
- the spec.
-
outboundAdapter
public static SftpMessageHandlerSpec outboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, FileExistsMode fileExistsMode) AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
sessionFactory- the session factory.fileExistsMode- the file exists mode.- Returns:
- the spec.
-
outboundAdapter
@Deprecated public static SftpMessageHandlerSpec outboundAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate) Deprecated.in favor ofoutboundAdapter(SftpRemoteFileTemplate)AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
remoteFileTemplate- the remote file template.- Returns:
- the spec.
-
outboundAdapter
@Deprecated public static SftpMessageHandlerSpec outboundAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, FileExistsMode fileExistsMode) Deprecated.AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
remoteFileTemplate- the remote file template.fileExistsMode- the file exists mode.- Returns:
- the spec.
-
outboundAdapter
AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
sftpRemoteFileTemplate- the remote file template.- Returns:
- the spec.
- Since:
- 5.4
-
outboundAdapter
public static SftpMessageHandlerSpec outboundAdapter(SftpRemoteFileTemplate sftpRemoteFileTemplate, FileExistsMode fileExistsMode) AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
sftpRemoteFileTemplate- the remote file template.fileExistsMode- the file exists mode.- Returns:
- the spec.
- Since:
- 5.4
-
outboundGateway
public static SftpOutboundGatewaySpec outboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSftpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
sessionFactory- theSessionFactory.command- the command to perform on the FTP.expression- the remoteFilePath SpEL expression.- Returns:
- the
SftpOutboundGatewaySpec
-
outboundGateway
public static SftpOutboundGatewaySpec outboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, String command, String expression) Produce aSftpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
sessionFactory- theSessionFactory.command- the command to perform on the FTP.expression- the remoteFilePath SpEL expression.- Returns:
- the
SftpOutboundGatewaySpec - See Also:
-
outboundGateway
public static SftpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSftpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
remoteFileTemplate- theRemoteFileTemplateto be based on.command- the command to perform on the SFTP.expression- the remoteFilePath SpEL expression.- Returns:
- the
SftpOutboundGatewaySpec - See Also:
-
outboundGateway
public static SftpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, String command, String expression) Produce aSftpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
remoteFileTemplate- theRemoteFileTemplateto be based on.command- the command to perform on the SFTP.expression- the remoteFilePath SpEL expression.- Returns:
- the
SftpOutboundGatewaySpec - See Also:
-
outboundGateway
public static SftpOutboundGatewaySpec outboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, MessageSessionCallback<com.jcraft.jsch.ChannelSftp.LsEntry, ?> messageSessionCallback) Produce aSftpOutboundGatewaySpecbased on theMessageSessionCallback.- Parameters:
sessionFactory- theSessionFactoryto connect to.messageSessionCallback- theMessageSessionCallbackto perform SFTP operation(s) with theMessagecontext.- Returns:
- the
SftpOutboundGatewaySpec - See Also:
-
outboundAdapter(SftpRemoteFileTemplate)