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<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) AnSftpInboundChannelAdapterSpec
factory for an inbound channel adapter spec.inboundAdapter
(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, Comparator<File> receptionOrderComparator) AnSftpInboundChannelAdapterSpec
factory for an inbound channel adapter spec.inboundStreamingAdapter
(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate) AnSftpStreamingInboundChannelAdapterSpec
factory for an inbound channel adapter spec.inboundStreamingAdapter
(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, Comparator<org.apache.sshd.sftp.client.SftpClient.DirEntry> receptionOrderComparator) AnSftpStreamingInboundChannelAdapterSpec
factory for an inbound channel adapter spec.static SftpMessageHandlerSpec
outboundAdapter
(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) AnSftpMessageHandlerSpec
factory for an outbound channel adapter spec.static SftpMessageHandlerSpec
outboundAdapter
(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, FileExistsMode fileExistsMode) AnSftpMessageHandlerSpec
factory for an outbound channel adapter spec.static SftpMessageHandlerSpec
outboundAdapter
(SftpRemoteFileTemplate sftpRemoteFileTemplate) AnSftpMessageHandlerSpec
factory for an outbound channel adapter spec.static SftpMessageHandlerSpec
outboundAdapter
(SftpRemoteFileTemplate sftpRemoteFileTemplate, FileExistsMode fileExistsMode) AnSftpMessageHandlerSpec
factory for an outbound channel adapter spec.static SftpOutboundGatewaySpec
outboundGateway
(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, String command, String expression) Produce aSftpOutboundGatewaySpec
based on theRemoteFileTemplate
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remoteFilePath.static SftpOutboundGatewaySpec
outboundGateway
(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSftpOutboundGatewaySpec
based on theRemoteFileTemplate
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remoteFilePath.static SftpOutboundGatewaySpec
outboundGateway
(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, String command, String expression) Produce aSftpOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remoteFilePath.static SftpOutboundGatewaySpec
outboundGateway
(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSftpOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remoteFilePath.static SftpOutboundGatewaySpec
outboundGateway
(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, MessageSessionCallback<org.apache.sshd.sftp.client.SftpClient.DirEntry, ?> messageSessionCallback) Produce aSftpOutboundGatewaySpec
based on theMessageSessionCallback
.
-
Method Details
-
inboundAdapter
public static SftpInboundChannelAdapterSpec inboundAdapter(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) AnSftpInboundChannelAdapterSpec
factory for an inbound channel adapter spec.- Parameters:
sessionFactory
- the session factory.- Returns:
- the spec.
-
inboundAdapter
public static SftpInboundChannelAdapterSpec inboundAdapter(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, @Nullable Comparator<File> receptionOrderComparator) AnSftpInboundChannelAdapterSpec
factory for an inbound channel adapter spec.- Parameters:
sessionFactory
- the session factory.receptionOrderComparator
- the comparator.- Returns:
- the spec.
-
inboundStreamingAdapter
public static SftpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate) AnSftpStreamingInboundChannelAdapterSpec
factory for an inbound channel adapter spec.- Parameters:
remoteFileTemplate
- the remote file template.- Returns:
- the spec.
-
inboundStreamingAdapter
public static SftpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, @Nullable Comparator<org.apache.sshd.sftp.client.SftpClient.DirEntry> receptionOrderComparator) AnSftpStreamingInboundChannelAdapterSpec
factory for an inbound channel adapter spec.- Parameters:
remoteFileTemplate
- the remote file template.receptionOrderComparator
- the comparator.- Returns:
- the spec.
-
outboundAdapter
public static SftpMessageHandlerSpec outboundAdapter(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) AnSftpMessageHandlerSpec
factory for an outbound channel adapter spec.- Parameters:
sessionFactory
- the session factory.- Returns:
- the spec.
-
outboundAdapter
public static SftpMessageHandlerSpec outboundAdapter(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, FileExistsMode fileExistsMode) AnSftpMessageHandlerSpec
factory for an outbound channel adapter spec.- Parameters:
sessionFactory
- the session factory.fileExistsMode
- the file exists mode.- Returns:
- the spec.
-
outboundAdapter
AnSftpMessageHandlerSpec
factory 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) AnSftpMessageHandlerSpec
factory 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<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSftpOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
andexpression
for 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<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, String command, String expression) Produce aSftpOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
andexpression
for 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<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSftpOutboundGatewaySpec
based on theRemoteFileTemplate
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remoteFilePath.- Parameters:
remoteFileTemplate
- theRemoteFileTemplate
to 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<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, String command, String expression) Produce aSftpOutboundGatewaySpec
based on theRemoteFileTemplate
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remoteFilePath.- Parameters:
remoteFileTemplate
- theRemoteFileTemplate
to 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<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, MessageSessionCallback<org.apache.sshd.sftp.client.SftpClient.DirEntry, ?> messageSessionCallback) Produce aSftpOutboundGatewaySpec
based on theMessageSessionCallback
.- Parameters:
sessionFactory
- theSessionFactory
to connect to.messageSessionCallback
- theMessageSessionCallback
to perform SFTP operation(s) with theMessage
context.- Returns:
- the
SftpOutboundGatewaySpec
- See Also:
-