com.amazonaws.regions
Class RegionMetadataParser

java.lang.Object
  extended by com.amazonaws.regions.RegionMetadataParser

public class RegionMetadataParser
extends java.lang.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
RegionMetadataParser()
          Deprecated. since this object is stateless
 
Method Summary
static RegionMetadata parse(java.io.InputStream input)
          Parses the specified input stream and returns a RegionMetadata object.
 java.util.List<Region> parseRegionMetadata(java.io.InputStream input)
          Deprecated. in favor of parse(InputStream)
 java.util.List<Region> parseRegionMetadata(java.io.InputStream input, boolean endpointVerification)
          Deprecated. in favor of parse(InputStream)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegionMetadataParser

@Deprecated
public RegionMetadataParser()
Deprecated. since this object is stateless

Method Detail

parse

public static RegionMetadata parse(java.io.InputStream input)
                            throws java.io.IOException
Parses the specified input stream and returns a RegionMetadata object.

Parameters:
input - the input stream to parse
Returns:
the parsed region metadata
Throws:
java.io.IOException - on error

parseRegionMetadata

@Deprecated
public java.util.List<Region> parseRegionMetadata(java.io.InputStream input)
                                           throws java.io.IOException
Deprecated. in favor of parse(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:
java.io.IOException

parseRegionMetadata

@Deprecated
public java.util.List<Region> parseRegionMetadata(java.io.InputStream input,
                                                             boolean endpointVerification)
                                           throws java.io.IOException
Deprecated. in favor of parse(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:
java.io.IOException


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.