Package com.amazonaws.regions
Class RegionMetadataParser
- java.lang.Object
-
- com.amazonaws.regions.RegionMetadataParser
-
public class RegionMetadataParser extends Object
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 Constructor Description RegionMetadataParser()
Deprecated.since this object is stateless
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RegionMetadata
parse(InputStream input)
Parses the specified input stream and returns aRegionMetadata
object.List<Region>
parseRegionMetadata(InputStream input)
Deprecated.in favor ofparse(InputStream)
List<Region>
parseRegionMetadata(InputStream input, boolean endpointVerification)
Deprecated.in favor ofparse(InputStream)
-
-
-
Constructor Detail
-
RegionMetadataParser
@Deprecated public RegionMetadataParser()
Deprecated.since this object is stateless
-
-
Method Detail
-
parse
public static RegionMetadata parse(InputStream input) throws IOException
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 public List<Region> parseRegionMetadata(InputStream input) throws IOException
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
-
-