|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.regions.RegionUtils
public class RegionUtils
Utilities for working with regions.
Constructor Summary | |
---|---|
RegionUtils()
|
Method Summary | |
---|---|
static Region |
getRegion(java.lang.String regionName)
Returns the region with the id given, if it exists. |
static Region |
getRegionByEndpoint(java.lang.String endpoint)
Searches through all known regions to find one with any service at the specified endpoint. |
static java.util.List<Region> |
getRegions()
Returns a list of the available AWS regions. |
static java.util.List<Region> |
getRegionsForService(java.lang.String serviceAbbreviation)
Returns a list of the regions that support the service given. |
static void |
init()
Fetches the most recent version of the regions file from the remote source and caches it to the workspace metadata directory, then initializes the static list of regions with it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegionUtils()
Method Detail |
---|
public static java.util.List<Region> getRegions()
public static java.util.List<Region> getRegionsForService(java.lang.String serviceAbbreviation)
ServiceAbbreviations
public static Region getRegion(java.lang.String regionName)
public static Region getRegionByEndpoint(java.lang.String endpoint)
endpoint
- The endpoint for any service residing in the desired region.
java.net.MalformedURLException
- If the given URL is malformed, or if the one of the service
URLs on record is malformed.public static void init()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |