Search in sources :

Example 1 with FtpSession

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);
    }
}
Also used : FtpSession(nl.nn.adapterframework.ftp.FtpSession) FtpConnectException(nl.nn.adapterframework.ftp.FtpConnectException)

Aggregations

FtpConnectException (nl.nn.adapterframework.ftp.FtpConnectException)1 FtpSession (nl.nn.adapterframework.ftp.FtpSession)1