Search in sources :

Example 1 with TrellixFTPEntryParser

use of ch.cyberduck.core.ftp.parser.TrellixFTPEntryParser 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;
        }
    }));
}
Also used : RumpusFTPEntryParser(ch.cyberduck.core.ftp.parser.RumpusFTPEntryParser) LaxUnixFTPEntryParser(ch.cyberduck.core.ftp.parser.LaxUnixFTPEntryParser) TrellixFTPEntryParser(ch.cyberduck.core.ftp.parser.TrellixFTPEntryParser) FTPClientConfig(org.apache.commons.net.ftp.FTPClientConfig) CompositeFileEntryParser(ch.cyberduck.core.ftp.parser.CompositeFileEntryParser) UnitreeFTPEntryParser(ch.cyberduck.core.ftp.parser.UnitreeFTPEntryParser) EPLFFTPEntryParser(ch.cyberduck.core.ftp.parser.EPLFFTPEntryParser)

Aggregations

CompositeFileEntryParser (ch.cyberduck.core.ftp.parser.CompositeFileEntryParser)1 EPLFFTPEntryParser (ch.cyberduck.core.ftp.parser.EPLFFTPEntryParser)1 LaxUnixFTPEntryParser (ch.cyberduck.core.ftp.parser.LaxUnixFTPEntryParser)1 RumpusFTPEntryParser (ch.cyberduck.core.ftp.parser.RumpusFTPEntryParser)1 TrellixFTPEntryParser (ch.cyberduck.core.ftp.parser.TrellixFTPEntryParser)1 UnitreeFTPEntryParser (ch.cyberduck.core.ftp.parser.UnitreeFTPEntryParser)1 FTPClientConfig (org.apache.commons.net.ftp.FTPClientConfig)1