Class SftpClientImpl
- java.lang.Object
-
- com.chutneytesting.action.ssh.sftp.SftpClientImpl
-
- All Implemented Interfaces:
ChutneySftpClient,AutoCloseable
public class SftpClientImpl extends Object implements ChutneySftpClient
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChutneySftpClientbuildFor(Target target, long timeout, Logger logger)voidclose()voiddownload(String source, String destination)Map<String,Object>getAttributes(String file)List<String>listDirectory(String directory)voidupload(String source, String destination)
-
-
-
Method Detail
-
upload
public void upload(String source, String destination) throws IOException
- Specified by:
uploadin interfaceChutneySftpClient- Throws:
IOException
-
download
public void download(String source, String destination) throws IOException
- Specified by:
downloadin interfaceChutneySftpClient- Throws:
IOException
-
listDirectory
public List<String> listDirectory(String directory) throws IOException
- Specified by:
listDirectoryin interfaceChutneySftpClient- Throws:
IOException
-
getAttributes
public Map<String,Object> getAttributes(String file) throws IOException
- Specified by:
getAttributesin interfaceChutneySftpClient- Throws:
IOException
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
buildFor
public static ChutneySftpClient buildFor(Target target, long timeout, Logger logger) throws IOException
- Throws:
IOException
-
-