org.springframework.integration.sftp.session
Class SftpSessionFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<SftpSession>
org.springframework.integration.sftp.session.SftpSessionFactoryBean
- All Implemented Interfaces:
- BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean<SftpSession>, InitializingBean
public class SftpSessionFactoryBean
- extends AbstractFactoryBean<SftpSession>
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 |
SftpSessionFactoryBean
public SftpSessionFactoryBean()
setRemoteHost
public void setRemoteHost(java.lang.String remoteHost)
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(java.lang.String privateKey)
setPrivateKeyPassphrase
public void setPrivateKeyPassphrase(java.lang.String privateKeyPassphrase)
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean<SftpSession>
- Specified by:
getObjectType
in class AbstractFactoryBean<SftpSession>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface FactoryBean<SftpSession>
- Overrides:
isSingleton
in class AbstractFactoryBean<SftpSession>
createInstance
protected SftpSession createInstance()
throws java.lang.Exception
- Specified by:
createInstance
in class AbstractFactoryBean<SftpSession>
- Throws:
java.lang.Exception