Package br.com.davinti.vitruvio.spi.impl
Class SFTPServiceImpl
Object
SFTPServiceImpl
- All Implemented Interfaces:
SFTPService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic final classNested classes/interfaces inherited from interface SFTPService
SFTPService.SFTPChannel, SFTPService.SFTPResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSftpChannel(String host, int port, String user, String password) downloadFileViaSFTP(SFTPService.SFTPChannel sftp, String remoteFilePath) downloadFileViaSFTP(String host, int port, String user, String password, String remoteFilePath) uploadFileViaSFTP(SFTPService.SFTPChannel sftp, String localFilePath, String remoteDir) uploadFileViaSFTP(SFTPService.SFTPChannel sftp, String localFilePath, String remoteDir, String remoteFileName) uploadFileViaSFTP(String host, int port, String user, String password, String localFilePath, String remoteDir) uploadFileViaSFTP(String host, int port, String user, String password, String localFilePath, String remoteDir, String remoteFileName)
-
Constructor Details
-
SFTPServiceImpl
public SFTPServiceImpl()
-
-
Method Details
-
createSftpChannel
public SFTPService.SFTPChannel createSftpChannel(String host, int port, String user, String password) - Specified by:
createSftpChannelin interfaceSFTPService
-
downloadFileViaSFTP
public SFTPService.SFTPResult downloadFileViaSFTP(String host, int port, String user, String password, String remoteFilePath) - Specified by:
downloadFileViaSFTPin interfaceSFTPService
-
downloadFileViaSFTP
public SFTPService.SFTPResult downloadFileViaSFTP(SFTPService.SFTPChannel sftp, String remoteFilePath) - Specified by:
downloadFileViaSFTPin interfaceSFTPService
-
uploadFileViaSFTP
public SFTPService.SFTPResult uploadFileViaSFTP(String host, int port, String user, String password, String localFilePath, String remoteDir) - Specified by:
uploadFileViaSFTPin interfaceSFTPService
-
uploadFileViaSFTP
public SFTPService.SFTPResult uploadFileViaSFTP(String host, int port, String user, String password, String localFilePath, String remoteDir, String remoteFileName) - Specified by:
uploadFileViaSFTPin interfaceSFTPService
-
uploadFileViaSFTP
public SFTPService.SFTPResult uploadFileViaSFTP(SFTPService.SFTPChannel sftp, String localFilePath, String remoteDir) - Specified by:
uploadFileViaSFTPin interfaceSFTPService
-
uploadFileViaSFTP
public SFTPService.SFTPResult uploadFileViaSFTP(SFTPService.SFTPChannel sftp, String localFilePath, String remoteDir, String remoteFileName) - Specified by:
uploadFileViaSFTPin interfaceSFTPService
-