public class SftpRemoteFileTemplate extends RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry>
RemoteFileTemplate
providing type-safe access to
the underlying ChannelSftp object.RemoteFileOperations.OperationsCallback<F,T>
sessionFactory
Constructor and Description |
---|
SftpRemoteFileTemplate(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
doExecuteWithClient(ClientCallback<com.jcraft.jsch.ChannelSftp,T> callback) |
<T,C> T |
executeWithClient(ClientCallback<C,T> callback)
Execute the callback's doWithClient method after obtaining a session's
client, providing access to low level methods.
|
afterPropertiesSet, append, append, execute, exists, get, get, getRemoteFileSeparator, getSession, getSessionFactory, getTemporaryFileSuffix, invoke, isUseTemporaryFileName, list, remove, rename, send, send, setAutoCreateDirectory, setBeanFactory, setCharset, setFileNameExpression, setFileNameGenerator, setRemoteDirectoryExpression, setRemoteFileSeparator, setTemporaryFileSuffix, setTemporaryRemoteDirectoryExpression, setUseTemporaryFileName
public SftpRemoteFileTemplate(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory)
public <T,C> T executeWithClient(ClientCallback<C,T> callback)
RemoteFileOperations
executeWithClient
in interface RemoteFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry>
executeWithClient
in class RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry>
T
- The type returned by ClientCallback.doWithClient(Object)
.C
- The type of the underlying client object.callback
- the ClientCallback.protected <T> T doExecuteWithClient(ClientCallback<com.jcraft.jsch.ChannelSftp,T> callback)