org.springframework.integration.sftp.session
Class DefaultSftpSessionFactory
java.lang.Object
org.springframework.integration.sftp.session.DefaultSftpSessionFactory
- All Implemented Interfaces:
- org.springframework.integration.file.remote.session.SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry>
public class DefaultSftpSessionFactory
- extends java.lang.Object
- implements org.springframework.integration.file.remote.session.SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry>
Factory for creating SftpSession instances.
- Since:
- 2.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSftpSessionFactory
public DefaultSftpSessionFactory()
setHost
public void setHost(java.lang.String host)
setPort
public void setPort(int port)
setUser
public void setUser(java.lang.String user)
setPassword
public void setPassword(java.lang.String password)
setKnownHosts
public void setKnownHosts(java.lang.String knownHosts)
setPrivateKey
public void setPrivateKey(org.springframework.core.io.Resource privateKey)
setPrivateKeyPassphrase
public void setPrivateKeyPassphrase(java.lang.String privateKeyPassphrase)
setSessionConfig
public void setSessionConfig(java.util.Properties sessionConfig)
setProxy
public void setProxy(com.jcraft.jsch.Proxy proxy)
setSocketFactory
public void setSocketFactory(com.jcraft.jsch.SocketFactory socketFactory)
setTimeout
public void setTimeout(java.lang.Integer timeout)
setClientVersion
public void setClientVersion(java.lang.String clientVersion)
setHostKeyAlias
public void setHostKeyAlias(java.lang.String hostKeyAlias)
setServerAliveInterval
public void setServerAliveInterval(java.lang.Integer serverAliveInterval)
setServerAliveCountMax
public void setServerAliveCountMax(java.lang.Integer serverAliveCountMax)
setEnableDaemonThread
public void setEnableDaemonThread(java.lang.Boolean enableDaemonThread)
getSession
public org.springframework.integration.file.remote.session.Session<com.jcraft.jsch.ChannelSftp.LsEntry> getSession()
- Specified by:
getSession in interface org.springframework.integration.file.remote.session.SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry>