Spring Integration

org.springframework.integration.sftp
Class SftpSessionFactory

java.lang.Object
  extended by 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

Constructor Summary
SftpSessionFactory()
           
 
Method Summary
 void afterPropertiesSet()
           
 SftpSession getObject()
           
 Class<? extends SftpSession> getObjectType()
           
 boolean isSingleton()
           
 void setKnownHosts(String knownHosts)
           
 void setPassword(String password)
           
 void setPort(int port)
           
 void setPrivateKey(String privateKey)
           
 void setPrivateKeyPassphrase(String privateKeyPassphrase)
           
 void setRemoteHost(String remoteHost)
           
 void setUser(String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SftpSessionFactory

public SftpSessionFactory()
Method Detail

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)

Spring Integration

Copyright © 2010. All Rights Reserved.