Class FtpSession
java.lang.Object
org.springframework.integration.ftp.session.FtpSession
- All Implemented Interfaces:
Closeable,AutoCloseable,org.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>
public class FtpSession
extends Object
implements org.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>
Implementation of
Session for FTP.- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(InputStream inputStream, String path) voidclose()booleanbooleanorg.apache.commons.net.ftp.FTPClientbooleanisOpen()org.apache.commons.net.ftp.FTPFile[]String[]booleanvoidread(String path, OutputStream fos) booleanvoidbooleanbooleantest()voidwrite(InputStream inputStream, String path) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.file.remote.session.Session
dirty
-
Constructor Details
-
FtpSession
public FtpSession(org.apache.commons.net.ftp.FTPClient client)
-
-
Method Details
-
remove
- Specified by:
removein interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>- Throws:
IOException
-
list
- Specified by:
listin interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>- Throws:
IOException
-
listNames
- Specified by:
listNamesin interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>- Throws:
IOException
-
read
- Specified by:
readin interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>- Throws:
IOException
-
readRaw
- Specified by:
readRawin interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>- Throws:
IOException
-
finalizeRaw
- Specified by:
finalizeRawin interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>- Throws:
IOException
-
write
- Specified by:
writein interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>- Throws:
IOException
-
append
- Specified by:
appendin interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>
-
rename
- Specified by:
renamein interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>- Throws:
IOException
-
mkdir
- Specified by:
mkdirin interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>- Throws:
IOException
-
rmdir
- Specified by:
rmdirin interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>- Throws:
IOException
-
exists
- Specified by:
existsin interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>- Throws:
IOException
-
getClientInstance
public org.apache.commons.net.ftp.FTPClient getClientInstance()- Specified by:
getClientInstancein interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>
-
getHostPort
- Specified by:
getHostPortin interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>
-
test
public boolean test()- Specified by:
testin interfaceorg.springframework.integration.file.remote.session.Session<org.apache.commons.net.ftp.FTPFile>
-