use of nl.nn.adapterframework.ftp.FtpSession in project iaf by ibissource.
the class FtpFileSystemTestHelper method open.
private void open() throws FileSystemException, ConfigurationException {
ftpSession = new FtpSession();
ftpSession.setUsername(username);
ftpSession.setPassword(password);
ftpSession.setHost(host);
ftpSession.setPort(port);
ftpSession.configure();
try {
ftpSession.openClient(remoteDirectory);
} catch (FtpConnectException e) {
throw new FileSystemException("Cannot connect to the FTP server with domain [" + host + "]", e);
}
}
Aggregations