public class RegionUtils extends Object
Constructor and Description |
---|
RegionUtils() |
Modifier and Type | Method and Description |
---|---|
static Region |
getRegion(String regionName) |
static Region |
getRegionByEndpoint(String endpoint)
Searches through all known regions to find one with any service at the
specified endpoint.
|
static List<Region> |
getRegions() |
static List<Region> |
getRegionsForService(String serviceAbbreviation) |
static void |
init()
There is no need to call this method, it is public only for
Compatibility.
|
public static List<Region> getRegionsForService(String serviceAbbreviation)
serviceAbbreviation
- the service abbreviation.ServiceAbbreviations
public static Region getRegion(String regionName)
regionName
- the region name.public static Region getRegionByEndpoint(String endpoint)
endpoint
- The endpoint for any service residing in the desired
region.MalformedURLException
- If the given URL is malformed, or if the
one of the service URLs on record is malformed.public static void init()
Copyright © 2018. All rights reserved.