org.springframework.integration.sftp.session
Class SftpSessionFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean<SftpSession>
      extended by 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.


Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
SftpSessionFactoryBean()
           
 
Method Summary
protected  SftpSession createInstance()
           
 java.lang.Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setKnownHosts(java.lang.String knownHosts)
           
 void setPassword(java.lang.String password)
           
 void setPort(int port)
           
 void setPrivateKey(java.lang.String privateKey)
           
 void setPrivateKeyPassphrase(java.lang.String privateKeyPassphrase)
           
 void setRemoteHost(java.lang.String remoteHost)
           
 void setUser(java.lang.String user)
           
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SftpSessionFactoryBean

public SftpSessionFactoryBean()
Method Detail

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