GH-8559: Document how to enable SOCKS for SFTP (#8565)
* GH-8559: Document how to enable SOCKS for SFTP Fixes https://github.com/spring-projects/spring-integration/issues/8559 An out-of-the-box `SshClient` does not provide a smooth HTTP/SOCKS proxy configuration. * Mention in the `sftp.adoc` that `JGitSshClient`, configured with SOCKS, can be injected into a `DefaultSftpSessionFactory` * Fix Javadocs for `DefaultSftpSessionFactory`, respectively * Fix language in doc Co-authored-by: Gary Russell <grussell@vmware.com> --------- Co-authored-by: Gary Russell <grussell@vmware.com>
This commit is contained in:
@@ -115,8 +115,8 @@ public class DefaultSftpSessionFactory implements SessionFactory<SftpClient.DirE
|
||||
}
|
||||
|
||||
/**
|
||||
* Intended for use in tests so the MINA SSHD can be mocked.
|
||||
* @param sshClient The SshClient instance.
|
||||
* Instantiate based on the provided {@link SshClient}, e.g. some extension for HTTP/SOCKS.
|
||||
* @param sshClient the {@link SshClient} instance.
|
||||
* @param isSharedSession true if the session is to be shared.
|
||||
*/
|
||||
public DefaultSftpSessionFactory(SshClient sshClient, boolean isSharedSession) {
|
||||
|
||||
Reference in New Issue
Block a user