You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#8713
* Introduce `DefaultSftpSessionFactory.createSftpClient()` factory method
which can be overridden for any custom `SftpClient` use-case
* Add changes to the docs
* Some code clean up
**Cherry-pick to `6.1.x`**
# Conflicts:
# spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/DefaultSftpSessionFactory.java
# src/reference/antora/modules/ROOT/pages/sftp/session-factory.adoc
# src/reference/antora/modules/ROOT/pages/whats-new.adoc
Copy file name to clipboardExpand all lines: spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/DefaultSftpSessionFactory.java
+27-7Lines changed: 27 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,10 @@
53
53
54
54
/**
55
55
* Factory for creating {@link SftpSession} instances.
56
+
* <p>
57
+
* The {@link #createSftpClient(ClientSession, SftpVersionSelector, SftpErrorDataHandler)}
58
+
* can be overridden to provide a custom {@link SftpClient}.
59
+
* The {@link ConcurrentSftpClient} is used by default.
56
60
*
57
61
* @author Josh Long
58
62
* @author Mario Gray
@@ -64,6 +68,7 @@
64
68
* @author Artem Bilan
65
69
* @author Krzysztof Debski
66
70
* @author Auke Zaaiman
71
+
* @author Adama Sorho
67
72
*
68
73
* @since 2.0
69
74
*/
@@ -279,9 +284,7 @@ public SftpSession getSession() {
0 commit comments