public class FtpRemoteFileTemplate
extends org.springframework.integration.file.remote.RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile>
RemoteFileTemplate
providing type-safe access to
the underlying FTPClient object.Constructor and Description |
---|
FtpRemoteFileTemplate(org.springframework.integration.file.remote.session.SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
doExecuteWithClient(org.springframework.integration.file.remote.ClientCallback<org.apache.commons.net.ftp.FTPClient,T> callback) |
<T,C> T |
executeWithClient(org.springframework.integration.file.remote.ClientCallback<C,T> callback) |
boolean |
exists(java.lang.String path) |
afterPropertiesSet, append, append, execute, get, get, getRemoteFileSeparator, getTemporaryFileSuffix, isUseTemporaryFileName, remove, rename, send, send, setAutoCreateDirectory, setBeanFactory, setCharset, setFileNameExpression, setFileNameGenerator, setRemoteDirectoryExpression, setRemoteFileSeparator, setTemporaryFileSuffix, setTemporaryRemoteDirectoryExpression, setUseTemporaryFileName
public FtpRemoteFileTemplate(org.springframework.integration.file.remote.session.SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory)
public <T,C> T executeWithClient(org.springframework.integration.file.remote.ClientCallback<C,T> callback)
executeWithClient
in interface org.springframework.integration.file.remote.RemoteFileOperations<org.apache.commons.net.ftp.FTPFile>
executeWithClient
in class org.springframework.integration.file.remote.RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile>
protected <T> T doExecuteWithClient(org.springframework.integration.file.remote.ClientCallback<org.apache.commons.net.ftp.FTPClient,T> callback)
public boolean exists(java.lang.String path)
exists
in interface org.springframework.integration.file.remote.RemoteFileOperations<org.apache.commons.net.ftp.FTPFile>
exists
in class org.springframework.integration.file.remote.RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile>