use of com.adaptris.ftp.CommonsNetFtpClient in project interlok by adaptris.
the class TestCommonsNetFtp method connectClientImpl.
@Override
protected FileTransferClient connectClientImpl() throws Exception {
CommonsNetFtpClient client = new CommonsNetFtpClient(config.getProperty(FTP_HOST));
client.setAdditionalDebug(true);
client.connect(config.getProperty(FTP_USERNAME), Password.decode(config.getProperty(FTP_PASSWORD)));
logR.trace("Server OS : " + client.system());
logR.trace("Current Directory : " + client.pwd());
// logR.trace("Transfer Type : " + client.getType().toString());
return client;
}
Aggregations