@Test public void testLookupDefault() throws Exception { final Region lookup = new SwiftRegionService(session).lookup(Location.unknown); assertTrue(lookup.isDefault()); assertEquals("DFW", lookup.getRegionId()); assertNotNull(lookup.getCDNManagementUrl()); assertNotNull(lookup.getStorageUrl()); }
public Region lookup(final Path file) throws BackgroundException { final Path container = containerService.getContainer(file); if(Location.unknown.equals(new SwiftLocationFeature.SwiftRegion(container.attributes().getRegion()))) { return this.lookup(location.getLocation(container)); } return this.lookup(new SwiftLocationFeature.SwiftRegion(container.attributes().getRegion())); }
SwiftRegionService { public Region lookup(final Path file) throws BackgroundException { final Path container = containerService.getContainer(file); if(Location.unknown.equals(new SwiftLocationFeature.SwiftRegion(container.attributes().getRegion()))) { return this.lookup(location.getLocation(container)); } return this.lookup(new SwiftLocationFeature.SwiftRegion(container.attributes().getRegion())); } }
SwiftRegionService { public Region lookup(final Path file) throws BackgroundException { final Path container = containerService.getContainer(file); if(Location.unknown.equals(new SwiftLocationFeature.SwiftRegion(container.attributes().getRegion()))) { return this.lookup(location.getLocation(container)); } return this.lookup(new SwiftLocationFeature.SwiftRegion(container.attributes().getRegion())); } SwiftRegionService(final SwiftSession session);  SwiftRegionService(final SwiftSession session, final SwiftLocationFeature location); }
SwiftRegionService { public Region lookup(final Path file) throws BackgroundException { final Path container = containerService.getContainer(file); if(Location.unknown.equals(new SwiftLocationFeature.SwiftRegion(container.attributes().getRegion()))) { return this.lookup(location.getLocation(container)); } return this.lookup(new SwiftLocationFeature.SwiftRegion(container.attributes().getRegion())); } SwiftRegionService(final SwiftSession session);  SwiftRegionService(final SwiftSession session, final SwiftLocationFeature location); Region lookup(final Path file); Region lookup(final Location.Name location); }
SwiftRegionService { public Region lookup(final Path file) throws BackgroundException { final Path container = containerService.getContainer(file); if(Location.unknown.equals(new SwiftLocationFeature.SwiftRegion(container.attributes().getRegion()))) { return this.lookup(location.getLocation(container)); } return this.lookup(new SwiftLocationFeature.SwiftRegion(container.attributes().getRegion())); } SwiftRegionService(final SwiftSession session);  SwiftRegionService(final SwiftSession session, final SwiftLocationFeature location); Region lookup(final Path file); Region lookup(final Location.Name location);  }