org.springframework.integration.sftp
Class SftpSessionFactory
java.lang.Object
org.springframework.integration.sftp.SftpSessionFactory
- All Implemented Interfaces:
- FactoryBean<SftpSession>, InitializingBean
public class SftpSessionFactory
- extends Object
- implements FactoryBean<SftpSession>, InitializingBean
Factories SftpSession instances. There are lots of ways to construct a
SftpSession instance, and not all of them are obvious. This factory
does its best to make it work.
- Author:
- Josh Long, Mario Gray
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SftpSessionFactory
public SftpSessionFactory()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface InitializingBean
- Throws:
Exception
getObject
public SftpSession getObject()
throws Exception
- Specified by:
getObject in interface FactoryBean<SftpSession>
- Throws:
Exception
getObjectType
public Class<? extends SftpSession> getObjectType()
- Specified by:
getObjectType in interface FactoryBean<SftpSession>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface FactoryBean<SftpSession>
setKnownHosts
public void setKnownHosts(String knownHosts)
setPassword
public void setPassword(String password)
setPort
public void setPort(int port)
setPrivateKey
public void setPrivateKey(String privateKey)
setPrivateKeyPassphrase
public void setPrivateKeyPassphrase(String privateKeyPassphrase)
setRemoteHost
public void setRemoteHost(String remoteHost)
setUser
public void setUser(String user)
Copyright © 2010. All Rights Reserved.