@Test public void testAccessPathStyleBucketEuCentral() throws Exception { final S3Session session = new S3Session( new Host(new S3Protocol(), new S3Protocol().getDefaultHostname(), new Credentials( System.getProperties().getProperty("s3.key"), System.getProperties().getProperty("s3.secret") ))) { @Override public S3Protocol.AuthenticationHeaderSignatureVersion getSignatureVersion() { return S3Protocol.AuthenticationHeaderSignatureVersion.AWS4HMACSHA256; } @Override public RequestEntityRestStorageService connect(final Proxy proxy, final HostKeyCallback hostkey, final LoginCallback prompt) { final RequestEntityRestStorageService client = super.connect(proxy, hostkey, prompt); client.getConfiguration().setProperty("s3service.disable-dns-buckets", String.valueOf(true)); return client; } }; session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginCallback()); session.login(Proxy.DIRECT, new DisabledLoginCallback(), new DisabledCancelCallback()); final Path container = new Path("test-eu-central-1-cyberduck", EnumSet.of(Path.Type.volume)); new S3ObjectListService(session).list(container, new DisabledListProgressListener()); }
@Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER)); }
S3ObjectListService extends S3AbstractListService implements ListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER)); } }
S3ObjectListService extends S3AbstractListService implements ListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER)); } S3ObjectListService(final S3Session session); }
S3ObjectListService extends S3AbstractListService implements ListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER)); } S3ObjectListService(final S3Session session); @Override ListService withCache(final Cache<Path> cache); @Override AttributedList<Path> list(final Path directory, final ListProgressListener listener); AttributedList<Path> list(final Path directory, final ListProgressListener listener, final String delimiter); AttributedList<Path> list(final Path directory, final ListProgressListener listener, final String delimiter, final int chunksize); }
S3ObjectListService extends S3AbstractListService implements ListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER)); } S3ObjectListService(final S3Session session); @Override ListService withCache(final Cache<Path> cache); @Override AttributedList<Path> list(final Path directory, final ListProgressListener listener); AttributedList<Path> list(final Path directory, final ListProgressListener listener, final String delimiter); AttributedList<Path> list(final Path directory, final ListProgressListener listener, final String delimiter, final int chunksize);  }