Class SftpClientImpl
java.lang.Object
fr.enedis.chutney.action.ssh.sftp.SftpClientImpl
- All Implemented Interfaces:
ChutneySftpClient,AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChutneySftpClientbuildFor(fr.enedis.chutney.action.spi.injectable.Target target, long timeout, fr.enedis.chutney.action.spi.injectable.Logger logger) voidclose()voidgetAttributes(String file) listDirectory(String directory) void
-
Method Details
-
upload
- Specified by:
uploadin interfaceChutneySftpClient- Throws:
IOException
-
download
- Specified by:
downloadin interfaceChutneySftpClient- Throws:
IOException
-
listDirectory
- Specified by:
listDirectoryin interfaceChutneySftpClient- Throws:
IOException
-
getAttributes
- Specified by:
getAttributesin interfaceChutneySftpClient- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
buildFor
public static ChutneySftpClient buildFor(fr.enedis.chutney.action.spi.injectable.Target target, long timeout, fr.enedis.chutney.action.spi.injectable.Logger logger) throws IOException - Throws:
IOException
-