Class ConnectionToSftpServer
java.lang.Object
jp.ecuacion.tool.housekeepfiles.bean.ConnectionToRemoteServer
jp.ecuacion.tool.housekeepfiles.bean.ConnectionToSftpServer
Provides connection to remote server through sftp.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionToSftpServer(com.jcraft.jsch.Session sftpSession, com.jcraft.jsch.ChannelSftp sftpConnection) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidProvides close connection implementation.com.jcraft.jsch.ChannelSftpvoidsetSftpChannel(com.jcraft.jsch.ChannelSftp sftpChannel)
-
Constructor Details
-
ConnectionToSftpServer
public ConnectionToSftpServer(com.jcraft.jsch.Session sftpSession, com.jcraft.jsch.ChannelSftp sftpConnection) Construct a new instance.
-
-
Method Details
-
getSftpChannel
public com.jcraft.jsch.ChannelSftp getSftpChannel() -
setSftpChannel
public void setSftpChannel(com.jcraft.jsch.ChannelSftp sftpChannel) -
closeConnection
public void closeConnection()Description copied from class:ConnectionToRemoteServerProvides close connection implementation.- Specified by:
closeConnectionin classConnectionToRemoteServer
-