Class AbstractRegionMetadataProvider

java.lang.Object
com.amazonaws.regions.AbstractRegionMetadataProvider
All Implemented Interfaces:
RegionMetadataProvider
Direct Known Subclasses:
InMemoryRegionsProvider, PartitionMetadataProvider

public abstract class AbstractRegionMetadataProvider extends Object implements RegionMetadataProvider
An abstract implementation of RegionMetadataProvider
  • Constructor Details

    • AbstractRegionMetadataProvider

      public AbstractRegionMetadataProvider()
  • Method Details

    • getRegionByEndpoint

      public Region getRegionByEndpoint(String endpoint)
      Description copied from interface: RegionMetadataProvider
      Searches through all known regions to find one with any service at the specified endpoint. If no region is found with a service at that endpoint, an exception is thrown.
      Specified by:
      getRegionByEndpoint in interface RegionMetadataProvider
      Parameters:
      endpoint - The endpoint for any service residing in the desired region.
      Returns:
      The region containing any service running at the specified endpoint, otherwise an exception is thrown if no region is found with a service at the specified endpoint.