org.springframework.integration.sftp
Class SftpSessionFactory
java.lang.Object
org.springframework.integration.sftp.SftpSessionFactory
- All Implemented Interfaces:
- FactoryBean<SftpSession>, InitializingBean
public class SftpSessionFactory
- extends java.lang.Object
- implements FactoryBean<SftpSession>, InitializingBean
Factory for creating SftpSession
instances. There are lots of ways to construct a
SftpSession
instance, and not all of them are obvious. This factory should help.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SftpSessionFactory
public SftpSessionFactory()
setKnownHosts
public void setKnownHosts(java.lang.String knownHosts)
setPassword
public void setPassword(java.lang.String password)
setPort
public void setPort(int port)
setPrivateKey
public void setPrivateKey(java.lang.String privateKey)
setPrivateKeyPassphrase
public void setPrivateKeyPassphrase(java.lang.String privateKeyPassphrase)
setRemoteHost
public void setRemoteHost(java.lang.String remoteHost)
setUser
public void setUser(java.lang.String user)
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
java.lang.Exception
getObject
public SftpSession getObject()
throws java.lang.Exception
- Specified by:
getObject
in interface FactoryBean<SftpSession>
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class<? extends SftpSession> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean<SftpSession>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface FactoryBean<SftpSession>