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 SummaryModifier and TypeMethodDescriptioninboundAdapter(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) AnSftpInboundChannelAdapterSpecfactory for an inbound channel adapter spec.inboundAdapter(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, Comparator<File> receptionOrderComparator) AnSftpInboundChannelAdapterSpecfactory for an inbound channel adapter spec.inboundStreamingAdapter(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate) AnSftpStreamingInboundChannelAdapterSpecfactory 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) AnSftpStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.static SftpMessageHandlerSpecoutboundAdapter(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.static SftpMessageHandlerSpecoutboundAdapter(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> 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<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, String command, String expression) Produce aSftpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SftpOutboundGatewaySpecoutboundGateway(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSftpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SftpOutboundGatewaySpecoutboundGateway(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, String command, String expression) Produce aSftpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SftpOutboundGatewaySpecoutboundGateway(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSftpOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SftpOutboundGatewaySpecoutboundGateway(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, MessageSessionCallback<org.apache.sshd.sftp.client.SftpClient.DirEntry, ?> messageSessionCallback) Produce aSftpOutboundGatewaySpecbased on theMessageSessionCallback.
- 
Method Details- 
inboundAdapterpublic static SftpInboundChannelAdapterSpec inboundAdapter(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) AnSftpInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
- sessionFactory- the session factory.
- Returns:
- the spec.
 
- 
inboundAdapterpublic static SftpInboundChannelAdapterSpec inboundAdapter(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, @Nullable Comparator<File> receptionOrderComparator) AnSftpInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
- sessionFactory- the session factory.
- receptionOrderComparator- the comparator.
- Returns:
- the spec.
 
- 
inboundStreamingAdapterpublic static SftpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate) AnSftpStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
- remoteFileTemplate- the remote file template.
- Returns:
- the spec.
 
- 
inboundStreamingAdapterpublic static SftpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, @Nullable Comparator<org.apache.sshd.sftp.client.SftpClient.DirEntry> receptionOrderComparator) AnSftpStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
- remoteFileTemplate- the remote file template.
- receptionOrderComparator- the comparator.
- Returns:
- the spec.
 
- 
outboundAdapterpublic static SftpMessageHandlerSpec outboundAdapter(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
- sessionFactory- the session factory.
- Returns:
- the spec.
 
- 
outboundAdapterpublic static SftpMessageHandlerSpec outboundAdapter(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, FileExistsMode fileExistsMode) AnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
- sessionFactory- the session factory.
- fileExistsMode- the file exists mode.
- Returns:
- the spec.
 
- 
outboundAdapterAnSftpMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
- sftpRemoteFileTemplate- the remote file template.
- Returns:
- the spec.
- Since:
- 5.4
 
- 
outboundAdapterpublic 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
 
- 
outboundGatewaypublic static SftpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSftpOutboundGatewaySpecbased 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 SftpOutboundGatewaySpec
 
- 
outboundGatewaypublic static SftpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, String command, String expression) Produce aSftpOutboundGatewaySpecbased 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 SftpOutboundGatewaySpec
- See Also:
 
- 
outboundGatewaypublic static SftpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSftpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
- remoteFileTemplate- the- RemoteFileTemplateto be based on.
- command- the command to perform on the SFTP.
- expression- the remoteFilePath SpEL expression.
- Returns:
- the SftpOutboundGatewaySpec
- See Also:
 
- 
outboundGatewaypublic static SftpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, String command, String expression) Produce aSftpOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
- remoteFileTemplate- the- RemoteFileTemplateto be based on.
- command- the command to perform on the SFTP.
- expression- the remoteFilePath SpEL expression.
- Returns:
- the SftpOutboundGatewaySpec
- See Also:
 
- 
outboundGatewaypublic static SftpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, MessageSessionCallback<org.apache.sshd.sftp.client.SftpClient.DirEntry, ?> messageSessionCallback) Produce aSftpOutboundGatewaySpecbased on theMessageSessionCallback.- Parameters:
- sessionFactory- the- SessionFactoryto connect to.
- messageSessionCallback- the- MessageSessionCallbackto perform SFTP operation(s) with the- Messagecontext.
- Returns:
- the SftpOutboundGatewaySpec
- See Also:
 
 
-