Class SftpRemoteFileTemplate
java.lang.Object
org.springframework.integration.file.remote.RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry>
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<com.jcraft.jsch.ChannelSftp.LsEntry>
public class SftpRemoteFileTemplate
extends org.springframework.integration.file.remote.RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry>
SFTP version of
RemoteFileTemplate
providing type-safe access to
the underlying ChannelSftp object.- Since:
- 4.1
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SftpRemoteFileTemplate(org.springframework.integration.file.remote.session.SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory)
-
Method Summary
Modifier and Type Method Description protected <T> T
doExecuteWithClient(org.springframework.integration.file.remote.ClientCallback<com.jcraft.jsch.ChannelSftp,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<com.jcraft.jsch.ChannelSftp.LsEntry> 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<com.jcraft.jsch.ChannelSftp.LsEntry>
- Overrides:
executeWithClient
in classorg.springframework.integration.file.remote.RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry>
-
doExecuteWithClient
protected <T> T doExecuteWithClient(org.springframework.integration.file.remote.ClientCallback<com.jcraft.jsch.ChannelSftp,T> callback)
-