use of ch.cyberduck.core.ftp.parser.CompositeFileEntryParser in project cyberduck by iterate-ch.
the class FTPParserFactory method createUnixFTPEntryParser.
private CompositeFileEntryParser createUnixFTPEntryParser(final TimeZone timezone) {
return new CompositeFileEntryParser(Arrays.asList(new LaxUnixFTPEntryParser() {
@Override
protected FTPClientConfig getDefaultConfiguration() {
final FTPClientConfig config = super.getDefaultConfiguration();
config.setServerTimeZoneId(timezone.getID());
return config;
}
}, new EPLFFTPEntryParser(), new RumpusFTPEntryParser() {
@Override
protected FTPClientConfig getDefaultConfiguration() {
final FTPClientConfig config = super.getDefaultConfiguration();
config.setServerTimeZoneId(timezone.getID());
return config;
}
}, new TrellixFTPEntryParser() {
@Override
protected FTPClientConfig getDefaultConfiguration() {
final FTPClientConfig config = super.getDefaultConfiguration();
config.setServerTimeZoneId(timezone.getID());
return config;
}
}, new UnitreeFTPEntryParser() {
@Override
protected FTPClientConfig getDefaultConfiguration() {
final FTPClientConfig config = super.getDefaultConfiguration();
config.setServerTimeZoneId(timezone.getID());
return config;
}
}));
}
use of ch.cyberduck.core.ftp.parser.CompositeFileEntryParser in project cyberduck by iterate-ch.
the class FTPParserFactory method createOS400FTPEntryParser.
private CompositeFileEntryParser createOS400FTPEntryParser(final TimeZone timezone) {
return new CompositeFileEntryParser(Arrays.asList(new OS400FTPEntryParser() {
@Override
protected FTPClientConfig getDefaultConfiguration() {
final FTPClientConfig config = super.getDefaultConfiguration();
config.setServerTimeZoneId(timezone.getID());
return config;
}
}, this.createUnixFTPEntryParser(timezone)));
}
use of ch.cyberduck.core.ftp.parser.CompositeFileEntryParser in project cyberduck by iterate-ch.
the class FTPParserFactory method createNetwareFTPEntryParser.
private CompositeFileEntryParser createNetwareFTPEntryParser(final TimeZone timezone) {
return new CompositeFileEntryParser(Arrays.asList(new NetwareFTPEntryParser() {
@Override
protected FTPClientConfig getDefaultConfiguration() {
final FTPClientConfig config = super.getDefaultConfiguration();
config.setServerTimeZoneId(timezone.getID());
return config;
}
}, this.createUnixFTPEntryParser(timezone)));
}
use of ch.cyberduck.core.ftp.parser.CompositeFileEntryParser in project cyberduck by iterate-ch.
the class FTPParserFactory method createNTFTPEntryParser.
private CompositeFileEntryParser createNTFTPEntryParser(final TimeZone timezone) {
return new CompositeFileEntryParser(Arrays.asList(new NTFTPEntryParser() {
@Override
public FTPClientConfig getDefaultConfiguration() {
final FTPClientConfig config = super.getDefaultConfiguration();
config.setServerTimeZoneId(timezone.getID());
return config;
}
}, this.createUnixFTPEntryParser(timezone)));
}
Aggregations