Package com.amazonaws.regions
Class RegionMetadataParser
java.lang.Object
com.amazonaws.regions.RegionMetadataParser
Parses a region metadata file to pull out information about the
available regions, names, IDs, and what service endpoints are available
in each region.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RegionMetadata
parse
(InputStream input) Parses the specified input stream and returns aRegionMetadata
object.parseRegionMetadata
(InputStream input) Deprecated.in favor ofparse(InputStream)
parseRegionMetadata
(InputStream input, boolean endpointVerification) Deprecated.in favor ofparse(InputStream)
-
Constructor Details
-
RegionMetadataParser
Deprecated.since this object is stateless
-
-
Method Details
-
parse
Parses the specified input stream and returns aRegionMetadata
object.- Parameters:
input
- the input stream to parse- Returns:
- the parsed region metadata
- Throws:
IOException
- on error
-
parseRegionMetadata
Deprecated.in favor ofparse(InputStream)
Parses the specified input stream and returns a list of the regions declared in it. By default, verification on the region endpoints is disabled.- Parameters:
input
- The stream containing the region metadata to parse.- Returns:
- The list of parsed regions.
- Throws:
IOException
-
parseRegionMetadata
@Deprecated public List<Region> parseRegionMetadata(InputStream input, boolean endpointVerification) throws IOException Deprecated.in favor ofparse(InputStream)
Parses the specified input stream and optionally verifies that all of the endpoints end in ".amazonaws.com". This method is deprecated, since not all valid AWS endpoints end in ".amazonaws.com" any more.- Parameters:
input
- The stream containing the region metadata to parse.endpointVerification
- Whether to verify each region endpoint- Returns:
- The list of parsed regions.
- Throws:
IOException
-