Search in sources :

Example 11 with CompositeFileEntryParser

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;
        }
    }));
}
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)

Example 12 with CompositeFileEntryParser

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)));
}
Also used : FTPClientConfig(org.apache.commons.net.ftp.FTPClientConfig) CompositeFileEntryParser(ch.cyberduck.core.ftp.parser.CompositeFileEntryParser) OS400FTPEntryParser(org.apache.commons.net.ftp.parser.OS400FTPEntryParser)

Example 13 with CompositeFileEntryParser

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)));
}
Also used : NetwareFTPEntryParser(org.apache.commons.net.ftp.parser.NetwareFTPEntryParser) FTPClientConfig(org.apache.commons.net.ftp.FTPClientConfig) CompositeFileEntryParser(ch.cyberduck.core.ftp.parser.CompositeFileEntryParser)

Example 14 with CompositeFileEntryParser

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)));
}
Also used : NTFTPEntryParser(org.apache.commons.net.ftp.parser.NTFTPEntryParser) FTPClientConfig(org.apache.commons.net.ftp.FTPClientConfig) CompositeFileEntryParser(ch.cyberduck.core.ftp.parser.CompositeFileEntryParser)

Aggregations

CompositeFileEntryParser (ch.cyberduck.core.ftp.parser.CompositeFileEntryParser)14 Test (org.junit.Test)7 DisabledListProgressListener (ch.cyberduck.core.DisabledListProgressListener)6 Path (ch.cyberduck.core.Path)6 IntegrationTest (ch.cyberduck.test.IntegrationTest)6 FTPClientConfig (org.apache.commons.net.ftp.FTPClientConfig)6 AlphanumericRandomStringService (ch.cyberduck.core.AlphanumericRandomStringService)3 ListService (ch.cyberduck.core.ListService)3 AbstractFTPTest (ch.cyberduck.core.ftp.AbstractFTPTest)3 FTPParserSelector (ch.cyberduck.core.ftp.FTPParserSelector)3 FTPTouchFeature (ch.cyberduck.core.ftp.FTPTouchFeature)3 FTPWorkdirService (ch.cyberduck.core.ftp.FTPWorkdirService)3 TransferStatus (ch.cyberduck.core.transfer.TransferStatus)3 UnixFTPEntryParser (org.apache.commons.net.ftp.parser.UnixFTPEntryParser)3 DisabledLoginCallback (ch.cyberduck.core.DisabledLoginCallback)2 Delete (ch.cyberduck.core.features.Delete)2 FTPDeleteFeature (ch.cyberduck.core.ftp.FTPDeleteFeature)2 LaxUnixFTPEntryParser (ch.cyberduck.core.ftp.parser.LaxUnixFTPEntryParser)2 ListCanceledException (ch.cyberduck.core.exception.ListCanceledException)1 EPLFFTPEntryParser (ch.cyberduck.core.ftp.parser.EPLFFTPEntryParser)1