Class SftpRemoteFileTemplate
java.lang.Object
org.springframework.integration.file.remote.RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry>
org.springframework.integration.sftp.session.SftpRemoteFileTemplate
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.InitializingBean
,org.springframework.integration.file.remote.RemoteFileOperations<org.apache.sshd.sftp.client.SftpClient.DirEntry>
public class SftpRemoteFileTemplate
extends org.springframework.integration.file.remote.RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry>
SFTP version of
RemoteFileTemplate
providing type-safe access to
the underlying ChannelSftp object.- Since:
- 4.1
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.springframework.integration.file.remote.RemoteFileTemplate
logger, sessionFactory
-
Constructor Summary
ConstructorDescriptionSftpRemoteFileTemplate
(org.springframework.integration.file.remote.session.SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
doExecuteWithClient
(org.springframework.integration.file.remote.ClientCallback<org.apache.sshd.sftp.client.SftpClient, T> callback) <T,
C> T executeWithClient
(org.springframework.integration.file.remote.ClientCallback<C, T> callback) Methods inherited from class org.springframework.integration.file.remote.RemoteFileTemplate
afterPropertiesSet, append, append, execute, exists, get, get, getDirectoryExpressionProcessor, getRemoteFileSeparator, getSession, getSessionFactory, getTemporaryFileSuffix, invoke, isUseTemporaryFileName, list, remove, rename, send, send, setAutoCreateDirectory, setBeanFactory, setCharset, setFileNameExpression, setFileNameGenerator, setRemoteDirectoryExpression, setRemoteFileSeparator, setTemporaryFileSuffix, setTemporaryRemoteDirectoryExpression, setUseTemporaryFileName
-
Constructor Details
-
SftpRemoteFileTemplate
public SftpRemoteFileTemplate(org.springframework.integration.file.remote.session.SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory)
-
-
Method Details
-
executeWithClient
public <T,C> T executeWithClient(org.springframework.integration.file.remote.ClientCallback<C, T> callback) - Specified by:
executeWithClient
in interfaceorg.springframework.integration.file.remote.RemoteFileOperations<org.apache.sshd.sftp.client.SftpClient.DirEntry>
- Overrides:
executeWithClient
in classorg.springframework.integration.file.remote.RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry>
-
doExecuteWithClient
protected <T> T doExecuteWithClient(org.springframework.integration.file.remote.ClientCallback<org.apache.sshd.sftp.client.SftpClient, T> callback)
-