Spring Integration

org.springframework.integration.sftp.session
Class DefaultSftpSessionFactory

java.lang.Object
  extended by org.springframework.integration.sftp.session.DefaultSftpSessionFactory
All Implemented Interfaces:
SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry>

public class DefaultSftpSessionFactory
extends java.lang.Object
implements SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry>

Factory for creating SftpSession instances.

Since:
2.0
Author:
Josh Long, Mario Gray, Oleg Zhurakousky

Constructor Summary
DefaultSftpSessionFactory()
           
 
Method Summary
 Session<com.jcraft.jsch.ChannelSftp.LsEntry> getSession()
           
 void setClientVersion(java.lang.String clientVersion)
           
 void setEnableDaemonThread(java.lang.Boolean enableDaemonThread)
           
 void setHost(java.lang.String host)
           
 void setHostKeyAlias(java.lang.String hostKeyAlias)
           
 void setKnownHosts(java.lang.String knownHosts)
           
 void setPassword(java.lang.String password)
           
 void setPort(int port)
           
 void setPrivateKey(org.springframework.core.io.Resource privateKey)
           
 void setPrivateKeyPassphrase(java.lang.String privateKeyPassphrase)
           
 void setProxy(com.jcraft.jsch.Proxy proxy)
           
 void setServerAliveCountMax(java.lang.Integer serverAliveCountMax)
           
 void setServerAliveInterval(java.lang.Integer serverAliveInterval)
           
 void setSessionConfig(java.util.Properties sessionConfig)
           
 void setSocketFactory(com.jcraft.jsch.SocketFactory socketFactory)
           
 void setTimeout(java.lang.Integer timeout)
           
 void setUser(java.lang.String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSftpSessionFactory

public DefaultSftpSessionFactory()
Method Detail

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 Session<com.jcraft.jsch.ChannelSftp.LsEntry> getSession()
Specified by:
getSession in interface SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry>

Spring Integration