@Test public void testUrl() { final DistributionConfiguration configuration = new GoogleStorageWebsiteDistributionConfiguration(session); assertEquals("http: DescriptiveUrl.Type.origin).getUrl()); }
@Override public DescriptiveUrlBag toUrl(final Path file) { final Distribution distribution = new Distribution(URI.create(String.format("%s: Distribution.DOWNLOAD.getScheme(), containerService.getContainer(file).getName(), this.getHostname())), Distribution.DOWNLOAD, false); distribution.setUrl(URI.create(String.format("%s: this.getHostname()))); return new DistributionUrlProvider(distribution).toUrl(file); }
GoogleStorageWebsiteDistributionConfiguration implements DistributionConfiguration, Index { @Override public DescriptiveUrlBag toUrl(final Path file) { final Distribution distribution = new Distribution(URI.create(String.format("%s: Distribution.DOWNLOAD.getScheme(), containerService.getContainer(file).getName(), this.getHostname())), Distribution.DOWNLOAD, false); distribution.setUrl(URI.create(String.format("%s: this.getHostname()))); return new DistributionUrlProvider(distribution).toUrl(file); } }
GoogleStorageWebsiteDistributionConfiguration implements DistributionConfiguration, Index { @Override public DescriptiveUrlBag toUrl(final Path file) { final Distribution distribution = new Distribution(URI.create(String.format("%s: Distribution.DOWNLOAD.getScheme(), containerService.getContainer(file).getName(), this.getHostname())), Distribution.DOWNLOAD, false); distribution.setUrl(URI.create(String.format("%s: this.getHostname()))); return new DistributionUrlProvider(distribution).toUrl(file); } GoogleStorageWebsiteDistributionConfiguration(final GoogleStorageSession session); }
GoogleStorageWebsiteDistributionConfiguration implements DistributionConfiguration, Index { @Override public DescriptiveUrlBag toUrl(final Path file) { final Distribution distribution = new Distribution(URI.create(String.format("%s: Distribution.DOWNLOAD.getScheme(), containerService.getContainer(file).getName(), this.getHostname())), Distribution.DOWNLOAD, false); distribution.setUrl(URI.create(String.format("%s: this.getHostname()))); return new DistributionUrlProvider(distribution).toUrl(file); } GoogleStorageWebsiteDistributionConfiguration(final GoogleStorageSession session); @Override List<Distribution.Method> getMethods(final Path container); @Override String getName(Distribution.Method method); @Override String getName(); @Override DescriptiveUrlBag toUrl(final Path file); @Override Distribution read(final Path file, final Distribution.Method method, final LoginCallback prompt); @Override void write(final Path file, final Distribution distribution, final LoginCallback prompt); @Override @SuppressWarnings("unchecked") T getFeature(final Class<T> type, final Distribution.Method method); @Override String getHostname(); }
GoogleStorageWebsiteDistributionConfiguration implements DistributionConfiguration, Index { @Override public DescriptiveUrlBag toUrl(final Path file) { final Distribution distribution = new Distribution(URI.create(String.format("%s: Distribution.DOWNLOAD.getScheme(), containerService.getContainer(file).getName(), this.getHostname())), Distribution.DOWNLOAD, false); distribution.setUrl(URI.create(String.format("%s: this.getHostname()))); return new DistributionUrlProvider(distribution).toUrl(file); } GoogleStorageWebsiteDistributionConfiguration(final GoogleStorageSession session); @Override List<Distribution.Method> getMethods(final Path container); @Override String getName(Distribution.Method method); @Override String getName(); @Override DescriptiveUrlBag toUrl(final Path file); @Override Distribution read(final Path file, final Distribution.Method method, final LoginCallback prompt); @Override void write(final Path file, final Distribution distribution, final LoginCallback prompt); @Override @SuppressWarnings("unchecked") T getFeature(final Class<T> type, final Distribution.Method method); @Override String getHostname();  }