public abstract class AbstractRegionMetadataProvider extends java.lang.Object implements RegionMetadataProvider
RegionMetadataProvider
Constructor and Description |
---|
AbstractRegionMetadataProvider() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
getHost(java.lang.String endpoint)
Parse the host portion out of an endpoint (which may or may not
contain a scheme).
|
Region |
getRegionByEndpoint(java.lang.String endpoint)
Searches through all known regions to find one with any service at the
specified endpoint.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRegion, getRegions, getRegionsForService
public Region getRegionByEndpoint(java.lang.String endpoint)
RegionMetadataProvider
getRegionByEndpoint
in interface RegionMetadataProvider
endpoint
- The endpoint for any service residing in the desired region.private static java.lang.String getHost(java.lang.String endpoint)
endpoint
- the endpoint to parse