org.springframework.integration.sftp.config
Class SftpRemoteFileSystemSynchronizingMessageSourceFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean<SftpInboundRemoteFileSystemSynchronizingMessageSource>
      extended by org.springframework.integration.sftp.config.SftpRemoteFileSystemSynchronizingMessageSourceFactoryBean
All Implemented Interfaces:
BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean<SftpInboundRemoteFileSystemSynchronizingMessageSource>, InitializingBean, ResourceLoaderAware

public class SftpRemoteFileSystemSynchronizingMessageSourceFactoryBean
extends AbstractFactoryBean<SftpInboundRemoteFileSystemSynchronizingMessageSource>
implements ResourceLoaderAware

Factory bean to hide the fairly complex configuration possibilities for an SFTP endpoint


Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
SftpRemoteFileSystemSynchronizingMessageSourceFactoryBean()
           
 
Method Summary
protected  SftpInboundRemoteFileSystemSynchronizingMessageSource createInstance()
          
 java.lang.Class<?> getObjectType()
          
 void setAutoCreateDirectories(java.lang.String autoCreateDirectories)
           
 void setAutoDeleteRemoteFilesOnSync(java.lang.String autoDeleteRemoteFilesOnSync)
           
 void setFilenamePattern(java.lang.String filenamePattern)
           
 void setFilter(EntryListFilter<com.jcraft.jsch.ChannelSftp.LsEntry> filter)
           
 void setHost(java.lang.String host)
           
 void setKeyFile(java.lang.String keyFile)
           
 void setKeyFilePassword(java.lang.String keyFilePassword)
           
 void setLocalDirectoryPath(java.lang.String localDirectoryPath)
           
 void setLocalDirectoryResource(Resource localDirectoryResource)
           
 void setPassword(java.lang.String password)
          Set the password to be used for authentication with the remote server
 void setPort(int port)
           
 void setRemoteDirectory(java.lang.String remoteDirectory)
          Set the remote directory to synchronize with
 void setResourceLoader(ResourceLoader resourceLoader)
          
 void setUsername(java.lang.String username)
          Set the user name to be used for authentication with the remote server
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SftpRemoteFileSystemSynchronizingMessageSourceFactoryBean

public SftpRemoteFileSystemSynchronizingMessageSourceFactoryBean()
Method Detail

setLocalDirectoryResource

public void setLocalDirectoryResource(Resource localDirectoryResource)

setLocalDirectoryPath

public void setLocalDirectoryPath(java.lang.String localDirectoryPath)

setAutoCreateDirectories

public void setAutoCreateDirectories(java.lang.String autoCreateDirectories)

setAutoDeleteRemoteFilesOnSync

public void setAutoDeleteRemoteFilesOnSync(java.lang.String autoDeleteRemoteFilesOnSync)

setFilenamePattern

public void setFilenamePattern(java.lang.String filenamePattern)

setFilter

public void setFilter(EntryListFilter<com.jcraft.jsch.ChannelSftp.LsEntry> filter)

setPort

public void setPort(int port)

setHost

public void setHost(java.lang.String host)

setKeyFile

public void setKeyFile(java.lang.String keyFile)

setKeyFilePassword

public void setKeyFilePassword(java.lang.String keyFilePassword)

setRemoteDirectory

public void setRemoteDirectory(java.lang.String remoteDirectory)
Set the remote directory to synchronize with


setUsername

public void setUsername(java.lang.String username)
Set the user name to be used for authentication with the remote server


setPassword

public void setPassword(java.lang.String password)
Set the password to be used for authentication with the remote server

Parameters:
password -

setResourceLoader

public void setResourceLoader(ResourceLoader resourceLoader)

Specified by:
setResourceLoader in interface ResourceLoaderAware

getObjectType

public java.lang.Class<?> getObjectType()

Specified by:
getObjectType in interface FactoryBean<SftpInboundRemoteFileSystemSynchronizingMessageSource>
Specified by:
getObjectType in class AbstractFactoryBean<SftpInboundRemoteFileSystemSynchronizingMessageSource>

createInstance

protected SftpInboundRemoteFileSystemSynchronizingMessageSource createInstance()
                                                                        throws java.lang.Exception

Specified by:
createInstance in class AbstractFactoryBean<SftpInboundRemoteFileSystemSynchronizingMessageSource>
Returns:
Fully configured SftpInboundRemoteFileSystemSynchronizingMessageSource
Throws:
java.lang.Exception