@Test public void testListPlaceholder() throws Exception { final Host host = new Host(new SpectraProtocol() { @Override public Scheme getScheme() { return Scheme.http; } }, System.getProperties().getProperty("spectra.hostname"), Integer.valueOf(System.getProperties().getProperty("spectra.port")), new Credentials( System.getProperties().getProperty("spectra.user"), System.getProperties().getProperty("spectra.key") )); final SpectraSession session = new SpectraSession(host, new DisabledX509TrustManager(), new DefaultX509KeyManager()); session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginCallback()); session.login(Proxy.DIRECT, new DisabledLoginCallback(), new DisabledCancelCallback()); final Path container = new Path("cyberduck", EnumSet.of(Path.Type.directory, Path.Type.volume)); final Path placeholder = new S3DirectoryFeature(session, new SpectraWriteFeature(session)).mkdir( new Path(container, UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory)), null, new TransferStatus()); final AttributedList<Path> list = new SpectraObjectListService(session).list(placeholder, new DisabledListProgressListener()); assertTrue(list.isEmpty()); new SpectraDeleteFeature(session).delete(Collections.singletonList(placeholder), new DisabledLoginCallback(), new Delete.DisabledCallback()); session.close(); }
@Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, preferences.getInteger("s3.listing.chunksize")); }
SpectraObjectListService extends S3AbstractListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, preferences.getInteger("s3.listing.chunksize")); } }
SpectraObjectListService extends S3AbstractListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, preferences.getInteger("s3.listing.chunksize")); } SpectraObjectListService(final SpectraSession session); }
SpectraObjectListService extends S3AbstractListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, preferences.getInteger("s3.listing.chunksize")); } SpectraObjectListService(final SpectraSession session); @Override AttributedList<Path> list(final Path directory, final ListProgressListener listener); }
SpectraObjectListService extends S3AbstractListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, preferences.getInteger("s3.listing.chunksize")); } SpectraObjectListService(final SpectraSession session); @Override AttributedList<Path> list(final Path directory, final ListProgressListener listener);  }